mirror of
https://github.com/jimeh/dotify.git
synced 2026-02-19 10:06:39 +00:00
Keep things consistent
This commit is contained in:
@@ -4,7 +4,7 @@ source "../../src/lib/arguments.sh"
|
|||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# has-argument()
|
# has-argument() tests
|
||||||
#
|
#
|
||||||
|
|
||||||
# Returns 1 when it does not have argument.
|
# Returns 1 when it does not have argument.
|
||||||
@@ -20,7 +20,7 @@ assert_end "has-argument()"
|
|||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# parse-argument()
|
# parse-argument() tests
|
||||||
#
|
#
|
||||||
|
|
||||||
# Echos nothing and returns 1 when argument is not present.
|
# Echos nothing and returns 1 when argument is not present.
|
||||||
|
|||||||
@@ -2,6 +2,10 @@
|
|||||||
source "../test-helper.sh"
|
source "../test-helper.sh"
|
||||||
source "../../src/lib/trim.sh"
|
source "../../src/lib/trim.sh"
|
||||||
|
|
||||||
|
#
|
||||||
|
# trim() tests
|
||||||
|
#
|
||||||
|
|
||||||
assert 'trim " foo bar "' "foo bar"
|
assert 'trim " foo bar "' "foo bar"
|
||||||
assert 'trim "foo bar "' "foo bar"
|
assert 'trim "foo bar "' "foo bar"
|
||||||
assert 'trim " foo bar"' "foo bar"
|
assert 'trim " foo bar"' "foo bar"
|
||||||
|
|||||||
Reference in New Issue
Block a user