Created
February 25, 2015 21:44
-
-
Save usev6/f9d0f6ca4e213e89b546 to your computer and use it in GitHub Desktop.
testing REPL behaviour
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use v6; | |
use Test; | |
plan 1; | |
my $repl-input = 'my Int $t=4; $t.say; | |
$t.say'; | |
my $cmd = $*DISTRO.is-win | |
?? "echo $repl-input | $*EXECUTABLE" | |
!! "echo '$repl-input' | $*EXECUTABLE"; | |
is qqx[$cmd], "4\n4\n", 'OK'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following seems to work on Windows and Unix platforms.
[My goal was to feed multiple lines to rakudo's REPL and check the resulting output.]