Sha256: a07c2c745603db71f7dcb9d79e6766dd4c931156d2a7329129873a14d814a911
Contents?: true
Size: 359 Bytes
Versions: 1
Compression:
Stored size: 359 Bytes
Contents
require 'test_helper' require 'radius' class RadiusOrdStringTest < Minitest::Test def test_string_slice_integer str = Radius::OrdString.new "abc" assert_equal str[0], 97 assert_equal str[1], 98 assert_equal str[2], 99 end def test_string_slice_range str = Radius::OrdString.new "abc" assert_equal str[0..-1], "abc" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
radius-0.8.0 | test/ord_string_test.rb |