blob: 547e99c3d83238c8ec72b9c4dfd0c1940bf7190a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
require 'testing_env'
require 'extend/string'
class StringTest < Test::Unit::TestCase
def test_undent
undented = <<-EOS.undent
hi
....my friend over
there
EOS
assert undented == "hi\nmy friend over\nthere\n"
end
def test_undent_not_indented
undented = <<-EOS.undent
hi
I'm not indented
EOS
assert undented == "hi\nI'm not indented\n"
end
end
|