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

9 lines
224 B
Plaintext

$st0 struct{x str} = struct{x => "hello",}
test structlookup($st0, "x") {}
$st1 = struct{y => "world",}
test structlookup($st1, "y") {}
$st2 = struct{x => true, y=> 42, z => "hello world",}
test structlookup($st2, "z") {}