aboutsummaryrefslogtreecommitdiff
path: root/tests/field.nim
diff options
context:
space:
mode:
authorJulien Dessaux2023-01-07 11:10:04 +0100
committerJulien Dessaux2023-01-07 11:10:04 +0100
commit7d6ed4697e9c006b07a5029ea89ecd2198fe9d75 (patch)
tree1610a6ba6a088ba1ffa530a626f99635cc7654d2 /tests/field.nim
parentFixed stack duplicate behaviour (diff)
downloadnimfunge98-1.1.3.tar.gz
nimfunge98-1.1.3.tar.bz2
nimfunge98-1.1.3.zip
Fix several bugs #11.1.3
The load function was too clever, simplified it by using Set This uncovered an initialization bug in Set and a mishandling of Blank
Diffstat (limited to 'tests/field.nim')
-rw-r--r--tests/field.nim2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/field.nim b/tests/field.nim
index e386e37..00b6c19 100644
--- a/tests/field.nim
+++ b/tests/field.nim
@@ -106,8 +106,6 @@ suite "Field":
check minimal.IsIn(1, 0) == false
test "Load":
check Load("nonexistant") == nil
- check Load("examples/invalid.b98") == nil
- check Load("examples/empty.b98") == nil
check Load("examples/minimal.b98")[] == Field(lx: 1, lines: @[Line(columns: @['@'].cols)])
let hello = Field(lx: 24, lines: @[Line(columns: @['6', '4', '+', '"', '!', 'd', 'l', 'r', 'o', 'W', ' ', ',', 'o', 'l', 'l', 'e', 'H', '"', '>', ':', '#', ',', '_', '@'].cols)])
check Load("examples/hello.b98")[] == hello