mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
improve(amber)
better test (using `bc` companion for complex math)
This commit is contained in:
parent
dc337ea8a9
commit
25b76966d2
1 changed files with 6 additions and 7 deletions
|
@ -26,13 +26,12 @@ test:
|
||||||
dependencies:
|
dependencies:
|
||||||
pkgx.sh: ^1
|
pkgx.sh: ^1
|
||||||
script:
|
script:
|
||||||
- run: |
|
- run: cat $FIXTURE >test.ab
|
||||||
test "$(amber $FIXTURE)" = "Hello, world!"
|
|
||||||
test "$(pkgx $FIXTURE)" = "Hello, world!"
|
|
||||||
amber $FIXTURE hello.sh
|
|
||||||
fixture:
|
fixture:
|
||||||
extname: ab
|
extname: ab
|
||||||
content: |
|
content: |
|
||||||
let hello = "Hello, world!"
|
echo ((12 + 34) * 9) % 4
|
||||||
echo hello
|
- test "$(amber test.ab)" = 2
|
||||||
- test "$(./hello.sh)" = "Hello, world!"
|
- test "$(pkgx test.ab)" = 2
|
||||||
|
- amber test.ab test.sh
|
||||||
|
- test "$(./test.sh)" = 2
|
||||||
|
|
Loading…
Reference in a new issue