Class: PPSingleLineTest

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
lib/pp.rb

Instance Method Summary collapse

Instance Method Details

#test_hashObject



649
650
651
652
# File 'lib/pp.rb', line 649

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