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

4 lines
123 B
Bash
Executable file

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