toolkit/func/core/pkg_bc/10-test-calculation.sh
2021-07-04 23:50:25 -07:00

5 lines
121 B
Bash
Executable File

#!/bin/bash
r_log "bc" "Testing simple calculations"
test $(echo "8 + 5 * 2 / 10 - 1" | bc) -eq "8"
r_checkExitStatus $?