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:
Vincent Ambo 2022-08-10 20:02:05 +03:00 committed by tazjin
parent 522d93745c
commit 8150803e77
13 changed files with 50 additions and 16 deletions

View file

@ -0,0 +1 @@
{ add = 37.34; div = 1.05714; mul = 105.154; sub = 14.35; }

View file

@ -0,0 +1,6 @@
{
add = 12.34 + 25.0;
sub = 20.05 - 5.7;
mul = 28.42 * 3.70;
div = 18.5 / 17.5;
}

View file

@ -0,0 +1 @@
{ add = 20; div = 3; mul = 8; sub = 15; }

View file

@ -0,0 +1,6 @@
{
add = 15 + 5;
sub = 20 - 5;
mul = 4 * 2;
div = 9 / 3;
}

View file

@ -0,0 +1 @@
"hello\nworld"

View file

@ -0,0 +1,2 @@
''hello
world''

View file

@ -0,0 +1 @@
{ a = { b = 15; }; b = { c = "test"; }; }

View file

@ -0,0 +1 @@
{ a.b = 15; b.c = "test"; }

View file

@ -0,0 +1 @@
{ a = { b = 15; c = "test"; }; }

View file

@ -0,0 +1,4 @@
{
a.b = 15;
a.c = "test";
}

View file

@ -0,0 +1 @@
{ a = { b = 42; }; }

View file

@ -0,0 +1 @@
{ a.b = 42; }