Permalink
Browse files

Simpler test cases

  • Loading branch information...
Andy Chu
Andy Chu committed Sep 2, 2017
1 parent a79ebc8 commit dd52222e2961c81984dc730c9bd76e466a6dcf0a
Showing with 22 additions and 0 deletions.
  1. +22 −0 spec/blog-other1.test.sh
View
@@ -32,3 +32,25 @@ EOPATHS
)
echo "$paths"
# stdout-json: "/foo\n/bar\n/baz\n"
### Simpler example
foo=`cat`<<EOM
hello world
EOM
echo "$foo"
# stdout: hello world
### ` after here doc delimiter
foo=`cat <<EOM
hello world
EOM`
echo "$foo"
# stdout: hello world
### ` on its own line
foo=`cat <<EOM
hello world
EOM
`
echo "$foo"
# stdout: hello world

0 comments on commit dd52222

Please sign in to comment.