toolkit/func/core/pkg_bc/10-test-calculation.sh

5 lines
123 B
Bash
Raw Normal View History

2021-07-05 06:50:25 +00:00
#!/bin/bash
r_log "bc" "Testing simple calculations"
2021-07-06 20:16:01 +00:00
test "$(echo "8 + 5 * 2 / 10 - 1" | bc)" -eq "8"
2021-07-05 06:50:25 +00:00
r_checkExitStatus $?