mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
I can write tests, I promise
This commit is contained in:
parent
42253cadfb
commit
0fb52a1152
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user