Skip to content

Commit

Permalink
remove dup test
Browse files Browse the repository at this point in the history
  • Loading branch information
hayeah committed Mar 12, 2011
1 parent 520738c commit 7a7715c
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions test/test.rb
Expand Up @@ -243,21 +243,21 @@ def setup
setup_tmp
end

should "chomp lines for each/map" do
rsh {
ints = (1..100).to_a.map { |i| i.to_s }
cat.o("output").i { |p| p.puts(ints)}.exec
# raw access to pipe would have newlines
cat.i("output").o do |p|
p.each { |l| assert l.chomp!
}
end.exec
# iterator would've chomped the lines
cat.i("output").each do |l|
assert_nil l.chomp!
end
}
end
# should "chomp lines for each/map" do
# rsh {
# ints = (1..100).to_a.map { |i| i.to_s }
# cat.o("output").i { |p| p.puts(ints)}.exec
# # raw access to pipe would have newlines
# cat.i("output").o do |p|
# p.each { |l| assert l.chomp!
# }
# end.exec
# # iterator would've chomped the lines
# cat.i("output").each do |l|
# assert_nil l.chomp!
# end
# }
# end

# should "redirect io" do
# rsh {
Expand Down

0 comments on commit 7a7715c

Please sign in to comment.