/vendor/gems/facets-2.4.5/test/core/string/test_bytes.rb
Ruby | 12 lines | 8 code | 4 blank | 0 comment | 0 complexity | 416674e535677e741a6ebae431af5eb6 MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0, IPL-1.0, AGPL-1.0, LGPL-3.0
- require 'facets/string/bytes'
- require 'test/unit'
- class TC_String_Bytes < Test::Unit::TestCase
- def test_bytes
- s = "abc"
- assert_equal( s.unpack('C*'), s.bytes )
- end
- end