#!/bin/sh
set -e

echo "=== Testing lrcalc mult ==="
lrcalc mult 2 1 - 2 1

echo "=== Testing lrcalc lrcoef ==="
RES=$(lrcalc lrcoef 3 2 1 - 2 1 - 2 1)
if [ "$RES" != "2" ]; then
    echo "Unexpected lrcoef result: $RES (expected 2)"
    exit 1
fi

echo "=== Testing schubmult ==="
schubmult 1 3 2 - 1 3 2

echo "CLI tests passed successfully."
