Sha256: 1bbd49bb52b892851d7d2a295c2e9b0d456685d87bf4e23f49827f7bbc09b28f

Contents?: true

Size: 856 Bytes

Versions: 12

Compression:

Stored size: 856 Bytes

Contents

# NOTE: run bin/format-filters after changing this file
opal_filter "StringIO" do
  fails "StringIO#each when passed chomp returns each line with removed separator when called without block" # Expected ["a b \n" + "c d e|", "1 2 3 4 5\n" + "|", "the end"] == ["a b \n" + "c d e", "1 2 3 4 5\n", "the end"] to be truthy but was false
  fails "StringIO#each when passed chomp yields each line with removed separator to the passed block" # Expected ["a b \n" + "c d e|", "1 2 3 4 5\n" + "|", "the end"] == ["a b \n" + "c d e", "1 2 3 4 5\n", "the end"] to be truthy but was false
  fails "StringIO#each when passed limit returns the data read until the limit is met" # NoMethodError: undefined method `[]' for nil
  fails "StringIO#each_line when passed limit returns the data read until the limit is met" # NoMethodError: undefined method `[]' for nil  
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
opal-1.8.3.rc1 spec/filters/bugs/stringio.rb
opal-1.8.2 spec/filters/bugs/stringio.rb
opal-1.8.1 spec/filters/bugs/stringio.rb
opal-1.8.0 spec/filters/bugs/stringio.rb
opal-1.8.0.beta1 spec/filters/bugs/stringio.rb
opal-1.7.4 spec/filters/bugs/stringio.rb
opal-1.8.0.alpha1 spec/filters/bugs/stringio.rb
opal-1.7.3 spec/filters/bugs/stringio.rb
opal-1.7.2 spec/filters/bugs/stringio.rb
opal-1.7.1 spec/filters/bugs/stringio.rb
opal-1.7.0 spec/filters/bugs/stringio.rb
opal-1.7.0.rc1 spec/filters/bugs/stringio.rb