test(tvix/eval): add some eval-okay-* tests for trivial types
Change-Id: I85ccc07e08c67abf4fcd3752c58e1702943239ac Reviewed-on: https://cl.tvl.fyi/c/depot/+/6135 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
parent
522d93745c
commit
8150803e77
13 changed files with 50 additions and 16 deletions
|
|
@ -0,0 +1 @@
|
|||
{ add = 37.34; div = 1.05714; mul = 105.154; sub = 14.35; }
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
add = 12.34 + 25.0;
|
||||
sub = 20.05 - 5.7;
|
||||
mul = 28.42 * 3.70;
|
||||
div = 18.5 / 17.5;
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
{ add = 20; div = 3; mul = 8; sub = 15; }
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
add = 15 + 5;
|
||||
sub = 20 - 5;
|
||||
mul = 4 * 2;
|
||||
div = 9 / 3;
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
"hello\nworld"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
''hello
|
||||
world''
|
||||
|
|
@ -0,0 +1 @@
|
|||
{ a = { b = 15; }; b = { c = "test"; }; }
|
||||
|
|
@ -0,0 +1 @@
|
|||
{ a.b = 15; b.c = "test"; }
|
||||
|
|
@ -0,0 +1 @@
|
|||
{ a = { b = 15; c = "test"; }; }
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
a.b = 15;
|
||||
a.c = "test";
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
{ a = { b = 42; }; }
|
||||
|
|
@ -0,0 +1 @@
|
|||
{ a.b = 42; }
|
||||
Loading…
Add table
Add a link
Reference in a new issue