mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-09 13:43:46 -05:00
indent with two tabs
This commit is contained in:
@@ -93,12 +93,18 @@ _testCleanString_() {
|
|||||||
assert_output "I AM IN CAPS"
|
assert_output "I AM IN CAPS"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "_cleanString_: remove spaces before/aftrer -_" {
|
@test "_cleanString_: remove spaces before/aftrer dashes" {
|
||||||
run _cleanString_ "word - another- word -another-word"
|
run _cleanString_ "word - another- word -another-word"
|
||||||
assert_success
|
assert_success
|
||||||
assert_output "word-another-word-another-word"
|
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" {
|
@test "_cleanString_: alnum" {
|
||||||
run _cleanString_ -a " !@#$%^%& i am in caps 12345 == "
|
run _cleanString_ -a " !@#$%^%& i am in caps 12345 == "
|
||||||
assert_success
|
assert_success
|
||||||
|
|||||||
Reference in New Issue
Block a user