mirror of
https://github.com/tests-always-included/mo.git
synced 2024-12-18 16:27:52 +00:00
25 lines
356 B
Bash
Executable File
25 lines
356 B
Bash
Executable File
#!/usr/bin/env bash
|
|
cd "${0%/*}" || exit 1
|
|
. ../run-tests
|
|
|
|
name=Willy
|
|
wrapped() {
|
|
# This eats the newline in the content
|
|
echo "<b>$(cat)</b>"
|
|
}
|
|
template() {
|
|
cat <<EOF
|
|
{{#wrapped}}
|
|
{{name}} is awesome.
|
|
{{/wrapped}}
|
|
... this is the last line.
|
|
EOF
|
|
}
|
|
expected() {
|
|
cat <<EOF
|
|
<b> Willy is awesome.</b>... this is the last line.
|
|
EOF
|
|
}
|
|
|
|
runTest
|