better test

This commit is contained in:
Dylan Araps
2018-06-15 08:29:28 +10:00
parent 9548d5b111
commit 49f91fa6f0

View File

@@ -13,8 +13,8 @@ test_trim_all() {
}
test_regex() {
result="$(regex " Hello, World" '^[[:space:]]*(.*)')"
assert_equals "$result" "Hello, World"
result="$(regex "#FFFFFF" '^(#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3}))$')"
assert_equals "$result" "#FFFFFF"
}
test_lower() {