Sha256: beb6e1a995da3fe6b25d34a84dd5cf1b25dd36deb3cd066c971b1760e5903582

Contents?: true

Size: 424 Bytes

Versions: 4

Compression:

Stored size: 424 Bytes

Contents

covers 'facets/string/unbracket'

testcase String do

  unit :unbracket do
    s = "{unwrap me}"
    z = s.unbracket('{')
    z.assert == "unwrap me"

    s = "--unwrap me!"
    z = s.unbracket('--','!')
    z.assert == "unwrap me"
  end

  unit :unbracket! do
    s = "{unwrap me}"
    s.unbracket!('{')
    s.assert == "unwrap me"

    s = "--unwrap me!"
    s.unbracket!('--','!')
    s.assert == "unwrap me"
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
facets-2.9.1 test/core/string/test_unbracket.rb
facets-2.9.0 test/core/string/test_unbracket.rb
facets-2.9.0.pre.2 test/core/string/test_unbracket.rb
facets-2.9.0.pre.1 test/core/string/test_unbracket.rb