Class: TC

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
lib/wee-pm/utils.rb

Instance Method Summary collapse

Instance Method Details

#test_leading_trailingObject



33
34
35
36
37
# File 'lib/wee-pm/utils.rb', line 33

def test_leading_trailing
  str = "   \n   \n   test   \n   \n"
  r = remove_leading_and_trailing_empty_lines(str)
  assert_equal "   test   \n", r
end