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

5 lines
121 B
Bash
Raw Normal View History

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