PPSingleLineTest (Class)

In: pp.rb
Parent: Test::Unit::TestCase

Methods

test_hash  

Public Instance methods

[Source]

# File pp.rb, line 647
    def test_hash
      assert_equal("{1=>1}", PP.singleline_pp({ 1 => 1}, '')) # [ruby-core:02699]

      assert_equal("[1#{', 1'*99}]", PP.singleline_pp([1]*100, ''))
    end

[Validate]