From 78de3d477e5d00553823e4c8e449c47d75f3e87a Mon Sep 17 00:00:00 2001 From: Vicente Eduardo Ferrer Garcia Date: Thu, 22 Feb 2024 17:20:18 +0100 Subject: [PATCH] Update ts test. --- metacall.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metacall.rb b/metacall.rb index d28e8c6..8017bf9 100644 --- a/metacall.rb +++ b/metacall.rb @@ -120,7 +120,7 @@ def install (testpath/"test_typescript.sh").write <<~EOS #!/usr/bin/env bash cd typescript - echo 'load ts typedfunc.ts\ninspect\ncall typed_sum(4, 5)\nexit' | #{bin}/metacall + echo 'load ts typedfunc.ts\ninspect\ncall typed_sum(4321, 50000)\nexit' | #{bin}/metacall EOS chmod("u+x", testpath/"test_typescript.sh") (testpath/"test.py").write <<~EOS @@ -141,7 +141,7 @@ def install assert_match "Hello from Python", shell_output("#{bin}/metacall test.py") assert_match "Hello from Ruby", shell_output("#{bin}/metacall test.rb") assert_match "Hello from NodeJS", shell_output("#{bin}/metacall test.js") - assert_match "9.0", shell_output(testpath/"test_typescript.sh") + assert_match "54321", shell_output(testpath/"test_typescript.sh") # TODO # assert_match "Hello from Java", shell_output("#{bin}/metacall test.java")