From 540769f5f77edcfcf967e62504c64841cc2e96dd Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Sat, 26 Apr 2014 10:18:35 -0700 Subject: rakudo-star: add test Closes #28741. Signed-off-by: Adam Vandenberg --- Library/Formula/rakudo-star.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/rakudo-star.rb b/Library/Formula/rakudo-star.rb index 22ae592c3..4e5bfd4de 100644 --- a/Library/Formula/rakudo-star.rb +++ b/Library/Formula/rakudo-star.rb @@ -36,4 +36,10 @@ class RakudoStar < Formula # move the man pages out of the top level into share. mv "#{prefix}/man", share end + + test do + out = `#{bin}/perl6 -e 'loop (my $i = 0; $i < 10; $i++) { print $i }'` + assert_equal "0123456789", out + assert_equal 0, $?.exitstatus + end end -- cgit v1.2.3