Skip to content

Commit 245404a

Browse files
rhys-h-walkersmarr
authored andcommitted
Test runner is now case insensitive unless instructed not to be through case_sensitive: True in the tests.
It is also possible to now in the test level expect a test to fail. This allows for testing of test_runner features. Not ideal but makes sure case_sensitivity works correctly.
1 parent c8f480e commit 245404a

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# test_runner_tests
2+
These tests check that the test_runner is working correctly.
3+
Tests things that are SOM independent to make sure assertions work correctly.
4+
5+
If this is failing it more than likely means that the test_runner is broken.
6+
To ensure that it is test_runner failing and not SOM just run the files here in SOM and manually check the output.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
"
2+
VM:
3+
status: success
4+
stdout:
5+
...
6+
A
7+
b
8+
#c
9+
#D
10+
11+
"
12+
13+
case_insensitive = (
14+
run = (
15+
'a' println.
16+
'B' println.
17+
#C println.
18+
#d println.
19+
)
20+
)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"
2+
VM:
3+
status: error
4+
case_sensitive: True
5+
assertion_fail: True
6+
stdout:
7+
A
8+
"
9+
case_sensitive = (
10+
run = (
11+
'a' println.
12+
)
13+
)

0 commit comments

Comments
 (0)