I can write tests, I promise

This commit is contained in:
ThePhD 2017-06-12 10:49:38 -04:00
parent 42253cadfb
commit 0fb52a1152

View File

@ -563,5 +563,12 @@ print(tbl[1])
int v1 = tbl[true];
int v2 = tbl[1];
REQUIRE(v1 == 10);
REQUIRE(v2 == 10);
REQUIRE(v2 == 20);
tbl[true] = 30;
tbl[1] = 40;
v1 = tbl[true];
v2 = tbl[1];
REQUIRE(v1 == 30);
REQUIRE(v2 == 40);
}