Sha256: 52febccfd0e8e536ac6c676bf8583e88c4b21f65e6f14f9b910b42d6ab3309f8

Contents?: true

Size: 380 Bytes

Versions: 14

Compression:

Stored size: 380 Bytes

Contents

require_relative 'helper'


class TestInspectable < Test::Unit::TestCase

  class Temp

    include Xot::Inspectable

  end# Temp

  def temp(*args)
    Temp.new
  end

  def test_inspect()
    o = temp
    assert_match %r"#<(?:\w|\:\:)+:0x\w{16}+>", o.inspect

    assert_equal        o.inspect, o.inspect
    assert_not_equal temp.inspect, o.inspect
  end

end# TestInspectable

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
xot-0.3.3 test/test_inspectable.rb
xot-0.3.2 test/test_inspectable.rb
xot-0.3.1 test/test_inspectable.rb
xot-0.3 test/test_inspectable.rb
xot-0.2.1 test/test_inspectable.rb
xot-0.2 test/test_inspectable.rb
xot-0.1.42 test/test_inspectable.rb
xot-0.1.41 test/test_inspectable.rb
xot-0.1.40 test/test_inspectable.rb
xot-0.1.39 test/test_inspectable.rb
xot-0.1.38 test/test_inspectable.rb
xot-0.1.37 test/test_inspectable.rb
xot-0.1.36 test/test_inspectable.rb
xot-0.1.35 test/test_inspectable.rb