Skip to content

Commit c7a4e65

Browse files
committed
modify variable names
1 parent c70983b commit c7a4e65

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

scripts/test.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#! /usr/bin/env bash
22

33
JS_SLANG="node node_modules/js-slang/dist/repl/repl.js"
4-
TEST_FRAMEWORK="src/test/framework/main.js"
54

65
SOURCEFILES=src/*/*.js
7-
TEST_FRAMEWORK_FILE="source-test.js"
6+
SOURCE_TEST="src/test/framework/main.js"
7+
SOURCE_TEST_FILENAME="source-test.js"
88

99
red=`tput setaf 1`
1010
green=`tput setaf 2`
@@ -31,10 +31,10 @@ $DIFF"
3131
}
3232

3333
# $1 is the source file to be tested
34-
# $2 is the Source test file which uses the test framework
34+
# $2 is the Source test file which uses the source-test framework
3535
test_source_framework() {
36-
# run concatenation of test framework and test file
37-
RESULTS=$($JS_SLANG -e --chapter=4 "$(cat $TEST_FRAMEWORK $1 $2)")
36+
# run concatenation of source-test framework and test file
37+
RESULTS=$($JS_SLANG -e --chapter=4 "$(cat $SOURCE_TEST $1 $2)")
3838

3939
# retrieve names for tests that passed
4040
while read test_name
@@ -68,8 +68,8 @@ main() {
6868
test_source $s $i
6969
done
7070

71-
# check if test framework is being used
72-
TEST_PATH="$DIR/__tests__/$TEST_FRAMEWORK_FILE"
71+
# check if source-test framework is being used
72+
TEST_PATH="$DIR/__tests__/$SOURCE_TEST_FILENAME"
7373
if [ -e $TEST_PATH ]
7474
then
7575
test_source_framework $s $TEST_PATH

0 commit comments

Comments
 (0)