summaryrefslogtreecommitdiff
path: root/test/main
diff options
context:
space:
mode:
Diffstat (limited to 'test/main')
-rwxr-xr-xtest/main12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/main b/test/main
index 4a3d209..eded353 100755
--- a/test/main
+++ b/test/main
@@ -73,6 +73,18 @@ eval $(envstore eval)
test "$hello" = 'your mom'
unset hello
+echo "# envstore save (leading space in value)"
+envstore save hello ' world'
+eval $(envstore eval)
+test "$hello" = ' world'
+unset hello
+
+echo "# envstore save (trailing space in value)"
+envstore save hello 'world '
+eval $(envstore eval)
+test "$hello" = 'world '
+unset hello
+
echo "# envstore save (overwrite)"
envstore save hello world
eval $(envstore eval)