diff --git a/test/textProcessing.bats b/test/textProcessing.bats index 201fb98..f7e5bdb 100755 --- a/test/textProcessing.bats +++ b/test/textProcessing.bats @@ -93,12 +93,18 @@ _testCleanString_() { assert_output "I AM IN CAPS" } - @test "_cleanString_: remove spaces before/aftrer -_" { - run _cleanString_ "word - another- word- another-word" + @test "_cleanString_: remove spaces before/aftrer dashes" { + run _cleanString_ "word - another- word -another-word" assert_success assert_output "word-another-word-another-word" } + @test "_cleanString_: remove spaces before/aftrer underscores" { + run _cleanString_ "word _ another_ word _another_word" + assert_success + assert_output "word_another_word_another_word" + } + @test "_cleanString_: alnum" { run _cleanString_ -a " !@#$%^%& i am in caps 12345 == " assert_success