Sha256: 64090e5c0fd64ac985c89f72b7e7825f2a86635873edbead57b827b38534699a

Contents?: true

Size: 362 Bytes

Versions: 43

Compression:

Stored size: 362 Bytes

Contents

require 'test/unit'
require 'radius'

class RadiusOrdStringTest < Test::Unit::TestCase

  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

43 entries across 42 versions & 5 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/radius-0.7.5/test/ord_string_test.rb
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.1.0/gems/radius-0.7.5/test/ord_string_test.rb
radius-0.7.5 test/ord_string_test.rb
depengine-0.0.31 etc/isolate/ruby-1.8/gems/radius-0.6.1/test/ord_string_test.rb
depengine-0.0.30 etc/isolate/ruby-1.8/gems/radius-0.6.1/test/ord_string_test.rb
depengine-0.0.29 etc/isolate/ruby-1.8/gems/radius-0.6.1/test/ord_string_test.rb
depengine-0.0.28 etc/isolate/ruby-1.8/gems/radius-0.6.1/test/ord_string_test.rb
depengine-0.0.27 etc/isolate/ruby-1.8/gems/radius-0.6.1/test/ord_string_test.rb
depengine-0.0.26 etc/isolate/ruby-1.8/gems/radius-0.6.1/test/ord_string_test.rb
depengine-0.0.25 etc/isolate/ruby-1.8/gems/radius-0.6.1/test/ord_string_test.rb
depengine-0.0.24 etc/isolate/ruby-1.8/gems/radius-0.6.1/test/ord_string_test.rb
depengine-0.0.23 etc/isolate/ruby-1.8/gems/radius-0.6.1/test/ord_string_test.rb
depengine-0.0.22 etc/isolate/ruby-1.8/gems/radius-0.6.1/test/ord_string_test.rb
depengine-0.0.21 etc/isolate/ruby-1.8/gems/radius-0.6.1/test/ord_string_test.rb
depengine-0.0.20 etc/isolate/ruby-1.8/gems/radius-0.6.1/test/ord_string_test.rb
depengine-0.0.19 etc/isolate/ruby-1.8/gems/radius-0.6.1/test/ord_string_test.rb
radius-0.7.4 test/ord_string_test.rb
depengine-0.0.18 etc/isolate/ruby-1.8/gems/radius-0.6.1/test/ord_string_test.rb
depengine-0.0.17 etc/isolate/ruby-1.8/gems/radius-0.6.1/test/ord_string_test.rb
depengine-0.0.16 etc/isolate/ruby-1.8/gems/radius-0.6.1/test/ord_string_test.rb