Skip to content

Commit

Permalink
Update ts test.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Feb 22, 2024
1 parent 421cd9e commit 78de3d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metacall.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")
Expand Down

0 comments on commit 78de3d4

Please sign in to comment.