Files
mgmt/lang/interpret_test/TestAstFunc2/maplookup0/main.mcl
James Shubin 97baad4cb1 lang: funcs: Add Unify method for maplookup function
This also adds a few tests.
2021-05-23 20:03:10 -04:00

12 lines
297 B
Plaintext

$map1 map{int: str} = {42 => "hello1",}
test maplookup($map1, 42, "not found") {}
$map2 map{int: str} = {42 => "hello2",}
test maplookup($map2, 13, "world2") {}
$map3 = {42 => "hello3",}
test maplookup($map3, 42, "not found") {}
$map4 = {42 => "hello4",}
test maplookup($map4, 13, "world4") {}