Skip to content

Commit

Permalink
Shellvars: add tests for semicolon handling
Browse files Browse the repository at this point in the history
  • Loading branch information
David Lutterkort committed Nov 9, 2012
1 parent 6f5fd98 commit 3f71171
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lenses/tests/test_shellvars.aug
Expand Up @@ -80,6 +80,17 @@ unset ONBOOT # We do not want this var
{ "var" = "ab"
{ "#comment" = "c" } }

test lns get "var=ab; #c\n" =
{ "var" = "ab" }
{ "#comment" = "c" }

test lns put "var=ab; #c\n" after
set "/#comment" "d" =
"var=ab; #d\n"

test lns get "var=ab;\n" =
{ "var" = "ab" }

test lns get "var='ab#c'\n" =
{ "var" = "'ab#c'" }

Expand Down

0 comments on commit 3f71171

Please sign in to comment.