From 7d6ed4697e9c006b07a5029ea89ecd2198fe9d75 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sat, 7 Jan 2023 11:10:04 +0100 Subject: Fix several bugs #1 The load function was too clever, simplified it by using Set This uncovered an initialization bug in Set and a mishandling of Blank --- tests/field.nim | 2 -- 1 file changed, 2 deletions(-) (limited to 'tests') 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 -- cgit v1.2.3