Skip to content

Commit

Permalink
rakudo-star: add test
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#28741.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information
mnaberez authored and adamv committed Apr 26, 2014
1 parent de905b8 commit 98567bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Formula/rakudo-star.rb
Expand Up @@ -36,4 +36,10 @@ def install
# 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

0 comments on commit 98567bf

Please sign in to comment.