mirror of
https://github.com/tests-always-included/mo.git
synced 2024-12-18 16:27:52 +00:00
17 lines
318 B
Plaintext
17 lines
318 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
cd "${0%/*}" || exit 1
|
||
|
. ../run-tests
|
||
|
|
||
|
export planet=Earth
|
||
|
lambda() {
|
||
|
local content
|
||
|
|
||
|
content=$(cat)
|
||
|
mo::parse content "$content{{planet}} => |planet|$content"
|
||
|
echo -n "$content"
|
||
|
}
|
||
|
export template="{{= | | =}}<|#lambda|-|/lambda|>"
|
||
|
export expected="<-{{planet}} => Earth->"
|
||
|
|
||
|
runTest
|