File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -192,6 +192,10 @@ def install
192
192
( testpath /"test.js" ) . write <<~EOS
193
193
console.log("Hello from NodeJS")
194
194
EOS
195
+ ( testpath /"test-port.js" ) . write <<~EOS
196
+ require('metacall');
197
+ console.log("NodeJS Port");
198
+ EOS
195
199
Dir . mkdir ( testpath /"typescript" )
196
200
( testpath /"typescript/typedfunc.ts" ) . write <<~EOS
197
201
'use strict';
@@ -223,6 +227,9 @@ def install
223
227
( testpath /"test.py" ) . write <<~EOS
224
228
print("Hello from Python")
225
229
EOS
230
+ ( testpath /"test-port.py" ) . write <<~EOS
231
+ print("Python Port")
232
+ EOS
226
233
( testpath /"test.rb" ) . write <<~EOS
227
234
print("Hello from Ruby")
228
235
EOS
@@ -239,6 +246,8 @@ def install
239
246
assert_match "Hello from Ruby" , shell_output ( "#{ bin } /metacall test.rb" )
240
247
assert_match "Hello from NodeJS" , shell_output ( "#{ bin } /metacall test.js" )
241
248
assert_match "54321" , shell_output ( testpath /"test_typescript.sh" )
249
+ assert_match "NodeJS Port" , shell_output ( "#{ bin } /metacall test-port.js" )
250
+ assert_match "Python Port" , shell_output ( "#{ bin } /metacall test-port.py" )
242
251
243
252
# TODO: Enable Java
244
253
# assert_match "Hello from Java", shell_output("#{bin}/metacall test.java")
You can’t perform that action at this time.
0 commit comments