Archived
1
0
Fork 0

Implemented missing functions for the interpreter

This commit is contained in:
Julien Dessaux 2021-10-06 22:06:05 +02:00
parent f6bd9fa1a8
commit ba8933937e
6 changed files with 90 additions and 2 deletions

View file

@ -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)