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
radius-0.7.0.prerelease2 test/ord_string_test.rb
radius-0.7.0.prerelease test/ord_string_test.rb
radiant-rails3-0.1 vendor/radius/test/ord_string_test.rb