From fb3d024d75fe4f6760ef616fe8dfd307b7d7b688 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 10 Aug 2022 20:31:35 +0300 Subject: feat(tvix/eval): implement string concatenation Change-Id: If61066e59232b2bad42b5cb5f0f2d9b9c416be8b Reviewed-on: https://cl.tvl.fyi/c/depot/+/6137 Tested-by: BuildkiteCI Reviewed-by: sterni --- tvix/eval/src/tests/tvix_tests/eval-okay-concat-strings.exp | 1 + tvix/eval/src/tests/tvix_tests/eval-okay-concat-strings.nix | 1 + tvix/eval/src/tests/tvix_tests/eval-okay-simple-interpol.exp | 1 + tvix/eval/src/tests/tvix_tests/eval-okay-simple-interpol.nix | 1 + 4 files changed, 4 insertions(+) create mode 100644 tvix/eval/src/tests/tvix_tests/eval-okay-concat-strings.exp create mode 100644 tvix/eval/src/tests/tvix_tests/eval-okay-concat-strings.nix create mode 100644 tvix/eval/src/tests/tvix_tests/eval-okay-simple-interpol.exp create mode 100644 tvix/eval/src/tests/tvix_tests/eval-okay-simple-interpol.nix (limited to 'tvix/eval/src/tests/tvix_tests') diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-concat-strings.exp b/tvix/eval/src/tests/tvix_tests/eval-okay-concat-strings.exp new file mode 100644 index 000000000000..cd4bc1ab64cc --- /dev/null +++ b/tvix/eval/src/tests/tvix_tests/eval-okay-concat-strings.exp @@ -0,0 +1 @@ +"hello world" diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-concat-strings.nix b/tvix/eval/src/tests/tvix_tests/eval-okay-concat-strings.nix new file mode 100644 index 000000000000..1fc708929989 --- /dev/null +++ b/tvix/eval/src/tests/tvix_tests/eval-okay-concat-strings.nix @@ -0,0 +1 @@ +"hello " + "world" diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-simple-interpol.exp b/tvix/eval/src/tests/tvix_tests/eval-okay-simple-interpol.exp new file mode 100644 index 000000000000..cd4bc1ab64cc --- /dev/null +++ b/tvix/eval/src/tests/tvix_tests/eval-okay-simple-interpol.exp @@ -0,0 +1 @@ +"hello world" diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-simple-interpol.nix b/tvix/eval/src/tests/tvix_tests/eval-okay-simple-interpol.nix new file mode 100644 index 000000000000..125b0859ac42 --- /dev/null +++ b/tvix/eval/src/tests/tvix_tests/eval-okay-simple-interpol.nix @@ -0,0 +1 @@ +"hello ${"world"}" -- cgit 1.4.1