brew/Library/Homebrew/test/test_string.rb
BrewTestBot 13d544e11e Core files style updates.
Closes Homebrew/homebrew#42354.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 13:22:35 +01:00

22 lines
390 B
Ruby

require "testing_env"
require "extend/string"
class StringTest < Homebrew::TestCase
def test_undent
undented = <<-EOS.undent
hi
....my friend over
there
EOS
assert_equal "hi\nmy friend over\nthere\n", undented
end
def test_undent_not_indented
undented = <<-EOS.undent
hi
I'm not indented
EOS
assert_equal "hi\nI'm not indented\n", undented
end
end