diff options
author | Julien Dessaux | 2021-10-06 22:06:05 +0200 |
---|---|---|
committer | Julien Dessaux | 2021-10-06 22:06:05 +0200 |
commit | ba8933937e0b24e5a648ec176c4f0b8515fb0e2d (patch) | |
tree | 33ecdbf0e99eeee21a90a66aba21550dee6c6c74 /tests/field.nim | |
parent | Implemented steps over a funge space field (diff) | |
download | nimfunge98-ba8933937e0b24e5a648ec176c4f0b8515fb0e2d.tar.gz nimfunge98-ba8933937e0b24e5a648ec176c4f0b8515fb0e2d.tar.bz2 nimfunge98-ba8933937e0b24e5a648ec176c4f0b8515fb0e2d.zip |
Implemented missing functions for the interpreter
Diffstat (limited to 'tests/field.nim')
-rw-r--r-- | tests/field.nim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/field.nim b/tests/field.nim index e60887a..455d81f 100644 --- a/tests/field.nim +++ b/tests/field.nim @@ -216,3 +216,12 @@ suite "Field": check dna[].Step((1, 2), (3, 5)) == (4, 7) check dna[].Step((6, 1), (1, 1)) == (5, 0) check dna[].Step((1, 4), (-2, 2)) == (5, 0) + test "GetSize": + var minimal = Load("examples/minimal.b98") + var hello = Load("examples/hello.b98") + var hello2 = Load("examples/hello2.b98") + var dna = Load("examples/dna.b98") + check minimal[].GetSize() == (0, 0, 1, 1) + check hello[].GetSize() == (0, 0, 24, 1) + check hello2[].GetSize() == (1, 0, 33, 2) + check dna[].GetSize() == (0, 0, 7, 8) |