Sha256: 7633427517bc1918649738486ec9006e96d8c168d3fa0440d90bbb6b0d39cbab
Contents?: true
Size: 782 Bytes
Versions: 1
Compression:
Stored size: 782 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facet/string/unpack.rb # # Extracted Wed Jan 25 11:25:39 EST 2006 # Unit Tools Reap Test Extractor # require 'facet/string/unpack.rb' require 'test/unit' class TCString < Test::Unit::TestCase def test_unpack str, fmt = "abc\0", "Z*" assert_equal "abc", str.unpack(fmt).first assert_equal "abc", str.unpack(fmt, 0).first assert_equal "bc", str.unpack(fmt, 1).first assert_equal "bc", str.unpack(fmt, -3).first assert_equal "c", str.unpack(fmt, 2).first assert_equal "c", str.unpack(fmt, -2).first assert_equal "", str.unpack(fmt, 3).first assert_equal "", str.unpack(fmt, -1).first end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.0.3 | packages/core/test/lib/facet/string/test_unpack.rb |