aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_string.rb
blob: 55a70f72c41180c19df9daf1eb55a36073929e91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'testing_env'
require 'utils'

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
end