Skip to content

Commit 6c48a53

Browse files
committed
Added unit test to prevent regressions of #181
1 parent 514c956 commit 6c48a53

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/test_suite.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,9 @@ assert 'kscript "println(args.size)" "--params foo"' 1 ## make sure dash args a
245245
assert 'kscript "println(args.size)" "foo bar"' 1 ## allow for spaces
246246
assert 'kscript "println(args[0])" "foo bar"' "foo bar" ## make sure quotes are not propagated into args
247247

248+
## prevent regression of 181
249+
assert 'echo "println(123)" > 123foo.kts; kscript 123foo.kts' "123"
250+
248251

249252
kscript_nocall() { kotlin -classpath ${KSCRIPT_HOME}/build/libs/kscript.jar kscript.app.KscriptKt "$@";}
250253
export -f kscript_nocall

0 commit comments

Comments
 (0)