Class: PPSingleLineTest
- Defined in:
- lib/pp.rb
Instance Method Summary collapse
Instance Method Details
#test_hash ⇒ Object
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 |