diff options
Diffstat (limited to 'tests/foundational.bats')
-rw-r--r-- | tests/foundational.bats | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/foundational.bats b/tests/foundational.bats new file mode 100644 index 0000000..5683371 --- /dev/null +++ b/tests/foundational.bats @@ -0,0 +1,11 @@ +#!/usr/bin/env bats + +@test "addition using bc" { + result="$(echo 2+2 | bc)" + [ "$result" -eq 4 ] +} + +@test "addition using dc" { + result="$(echo 2 2+p | dc)" + [ "$result" -eq 4 ] +} |