mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-22 18:19:54 -04:00
12 lines
268 B
Plaintext
12 lines
268 B
Plaintext
|
import "../tuples.ucg" as tpl;
|
||
|
import "../testing.ucg" as t;
|
||
|
|
||
|
assert t.asserts{}.equal{
|
||
|
left = tpl.fields{tpl={foo=1, bar=2}}.result,
|
||
|
right = ["foo", "bar"],
|
||
|
};
|
||
|
|
||
|
assert t.asserts{}.equal{
|
||
|
left = tpl.values{tpl={foo=1, bar=2}}.result,
|
||
|
right = [1, 2],
|
||
|
};
|