mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-22 18:19:54 -04:00
TESTS: More Expression Format tests.
This commit is contained in:
parent
7b4995607c
commit
8861990a94
@ -33,4 +33,19 @@ assert t.equal{
|
||||
assert t.equal{
|
||||
left = "@{{foo=item.foo}.foo} is just great" % {foo="bar"},
|
||||
right = "bar is just great",
|
||||
};
|
||||
|
||||
assert t.equal{
|
||||
left = "@{1 + 1} is just great" % {},
|
||||
right = "2 is just great",
|
||||
};
|
||||
|
||||
assert t.equal{
|
||||
left = "@{item.0 + item.1 + item.2} is just great" % [0, 1, 2],
|
||||
right = "3 is just great",
|
||||
};
|
||||
|
||||
assert t.equal{
|
||||
left = "@{item.op()} is just great" % {op=func() => "BOB!"},
|
||||
right = "BOB! is just great",
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user