Sha256: 56c395d747e8ba04378c484f9085c8781bc27c4b41fa157bc6dfa5e3107d9627

Contents?: true

Size: 1.92 KB

Versions: 6

Compression:

Stored size: 1.92 KB

Contents

opal_filter "StringScanner" do
  fails "StringScanner#[] calls to_int on the given index"
  fails "StringScanner#[] raises a TypeError if the given index is nil"
  fails "StringScanner#[] raises a TypeError when a Range is as argument"
  fails "StringScanner#[] raises a TypeError when a String is as argument"

  fails "StringScanner#get_byte is not multi-byte character sensitive"

  fails "StringScanner#pos returns the position of the scan pointer"
  fails "StringScanner#pos returns the position of the scan pointer for multibyte string"
  fails "StringScanner#pos returns 0 in the reset position"
  fails "StringScanner#pos returns the length of the string in the terminate position"
  fails "StringScanner#pos returns the `bytesize` for multibyte string in the terminate position"
  fails "StringScanner#pos= raises a RangeError if position too far backward"
  fails "StringScanner#pos= raises a RangeError when the passed argument is out of range"

  fails "StringScanner#scan returns the matched string for a multi byte string"
  fails "StringScanner#scan raises a TypeError if pattern isn't a Regexp"

  fails "StringScanner#pos= can poin position that greater than string length for multibyte string"
  fails "StringScanner#pos= positions from the end if the argument is negative for multibyte string"

  fails "StringScanner#peek taints the returned String if the input was tainted"
  fails "StringScanner#peek returns an instance of String when passed a String subclass"
  fails "StringScanner#peek raises a RangeError when the passed argument is a Bignum"
  fails "StringScanner#peek raises a ArgumentError when the passed argument is negative"

  fails "StringScanner#rest taints the returned String if the input was tainted"
  fails "StringScanner#rest returns an instance of String when passed a String subclass"

  fails "StringScanner#[] raises a IndexError when there's no named capture"
  fails "StringScanner#[] returns named capture"
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
opal-0.8.1 spec/filters/bugs/stringscanner.rb
opal-0.8.1.rc1 spec/filters/bugs/stringscanner.rb
opal-0.8.0 spec/filters/bugs/stringscanner.rb
opal-0.8.0.rc3 spec/filters/bugs/stringscanner.rb
opal-0.8.0.rc2 spec/filters/bugs/stringscanner.rb
opal-0.8.0.rc1 spec/filters/bugs/stringscanner.rb