git @ Cat's Eye Technologies Falderal / 8c3bb45
Finish renaming all tests away from numbers. Chris Pressey 5 years ago
20 changed file(s) with 116 addition(s) and 112 deletion(s). Raw diff Collapse all Expand all
22
33 Version 0.11-PRE "Dan Ryan Expressway" (current development version):
44
5 * Renamed the internal tests to have more descriptive names (in progress.)
5 * Renamed the internal tests to have descriptive names instead of
6 numbers.
67 * The first command-line argument being `test` for compatibility with
78 previous versions of `falderal` has been removed.
9 * Massive internal refactor of block-parsing and test-extraction code.
810
911 Version 0.10 "Shedd Aquarium" (current released version):
1012
2727 diff -u ${TEST}.expected ${TEST}.actual || exit 1
2828 done
2929
30 # two-part tests
31 for TEST in test6 test7 test8; do
30 TWO_PART_TESTS="
31 test-no-functionality-leak test-implementations-global test-appliances
32 "
33 for TEST in ${TWO_PART_TESTS}; do
3234 echo ${TEST}...
33 ../bin/falderal ${TEST}a.markdown ${TEST}b.markdown > ${TEST}.actual 2>&1
35 ../bin/falderal ${TEST}-a.markdown ${TEST}-b.markdown > ${TEST}.actual 2>&1
3436 diff -u ${TEST}.expected ${TEST}.actual || exit 1
3537 done
3638
0 Falderal Test 8a
1 ----------------
2
3 This is really just a more lopsided version of test 7.
4
5 -> Tests for functionality "Cat"
6
7 Cat totally, like, cats.
8
9 | purr
10 | prrr
11 | prreow
12 = purr
13 = prrr
14 = prreow
0 Falderal Test 8b
1 ----------------
2
3 This is really just a more lopsided version of test 7.
4
5 -> Functionality "Cat" is implemented by
6 -> shell command "python cat.py"
7
8 -> Functionality "Cat" is implemented by
9 -> shell command "python cat.py -f %(test-body-file)"
10
11 -> Functionality "Cat" is implemented by
12 -> shell command "python cat.py -o %(output-file)"
13
14 -> Functionality "Cat" is implemented by
15 -> shell command "python echo.py '%(test-body-text)'"
0 --------------------------------
1 Total test runs: 4, failures: 0
2 --------------------------------
0 Falderal Test 7a
1 ----------------
2
3 This is a two-file test (the other file is 7b) which shows
4 that all implementations of a functionality apply to all
5 tests for that functionality, even when they're not in
6 the same file.
7
8 -> Functionality "Cat" is implemented by
9 -> shell command "python cat.py"
10
11 -> Tests for functionality "Cat"
12
13 Cat cats.
14
15 | meow
16 = meow
0 Falderal Test 7b
1 ----------------
2
3 This is a two-file test (the other file is 7a) which shows
4 that all implementations of a functionality apply to all
5 tests for that functionality, even when they're not in
6 the same file.
7
8 -> Functionality "Cat" is implemented by
9 -> shell command "python cat.py -f %(test-body-file)"
10
11 -> Tests for functionality "Cat"
12
13 Cat totally, like, cats.
14
15 | purr
16 | prrr
17 | prreow
18 = purr
19 = prrr
20 = prreow
0 --------------------------------
1 Total test runs: 4, failures: 0
2 --------------------------------
0 Falderal Test 6a
1 ----------------
2
3 This is a two-file test (the other file is 6b) which shows
4 that even if you says "Tests for functionality x" in this
5 file, that tests-for meaning does not "leak" into the next
6 file.
7
8 -> Functionality "Cat" is implemented by
9 -> shell command "python cat.py"
10
11 -> Tests for functionality "Cat"
12
13 Cat cats.
14
15 | meow
16 = meow
0 Falderal Test 6b
1 ----------------
2
3 This is a two-file test (the other file is 6a) which shows
4 that even if you says "Tests for functionality x" in the other
5 file, that tests-for meaning does not "leak" into this file.
6
7 Cat cats.
8
9 | purr
10 | prrr
11 | prreow
12 = purr
13 = prrr
14 = prreow
0 FalderalSyntaxError: line 10: functionality under test not specified
+0
-1
tests/test6.expected less more
0 FalderalSyntaxError: line 10: functionality under test not specified
+0
-17
tests/test6a.markdown less more
0 Falderal Test 6a
1 ----------------
2
3 This is a two-file test (the other file is 6b) which shows
4 that even if you says "Tests for functionality x" in this
5 file, that tests-for meaning does not "leak" into the next
6 file.
7
8 -> Functionality "Cat" is implemented by
9 -> shell command "python cat.py"
10
11 -> Tests for functionality "Cat"
12
13 Cat cats.
14
15 | meow
16 = meow
+0
-15
tests/test6b.markdown less more
0 Falderal Test 6b
1 ----------------
2
3 This is a two-file test (the other file is 6a) which shows
4 that even if you says "Tests for functionality x" in the other
5 file, that tests-for meaning does not "leak" into this file.
6
7 Cat cats.
8
9 | purr
10 | prrr
11 | prreow
12 = purr
13 = prrr
14 = prreow
+0
-3
tests/test7.expected less more
0 --------------------------------
1 Total test runs: 4, failures: 0
2 --------------------------------
+0
-17
tests/test7a.markdown less more
0 Falderal Test 7a
1 ----------------
2
3 This is a two-file test (the other file is 7b) which shows
4 that all implementations of a functionality apply to all
5 tests for that functionality, even when they're not in
6 the same file.
7
8 -> Functionality "Cat" is implemented by
9 -> shell command "python cat.py"
10
11 -> Tests for functionality "Cat"
12
13 Cat cats.
14
15 | meow
16 = meow
+0
-21
tests/test7b.markdown less more
0 Falderal Test 7b
1 ----------------
2
3 This is a two-file test (the other file is 7a) which shows
4 that all implementations of a functionality apply to all
5 tests for that functionality, even when they're not in
6 the same file.
7
8 -> Functionality "Cat" is implemented by
9 -> shell command "python cat.py -f %(test-body-file)"
10
11 -> Tests for functionality "Cat"
12
13 Cat totally, like, cats.
14
15 | purr
16 | prrr
17 | prreow
18 = purr
19 = prrr
20 = prreow
+0
-3
tests/test8.expected less more
0 --------------------------------
1 Total test runs: 4, failures: 0
2 --------------------------------
+0
-15
tests/test8a.markdown less more
0 Falderal Test 8a
1 ----------------
2
3 This is really just a more lopsided version of test 7.
4
5 -> Tests for functionality "Cat"
6
7 Cat totally, like, cats.
8
9 | purr
10 | prrr
11 | prreow
12 = purr
13 = prrr
14 = prreow
+0
-16
tests/test8b.markdown less more
0 Falderal Test 8b
1 ----------------
2
3 This is really just a more lopsided version of test 7.
4
5 -> Functionality "Cat" is implemented by
6 -> shell command "python cat.py"
7
8 -> Functionality "Cat" is implemented by
9 -> shell command "python cat.py -f %(test-body-file)"
10
11 -> Functionality "Cat" is implemented by
12 -> shell command "python cat.py -o %(output-file)"
13
14 -> Functionality "Cat" is implemented by
15 -> shell command "python echo.py '%(test-body-text)'"