Files
std/test.sh
T
2026-06-02 05:50:35 +02:00

17 lines
376 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
MAIN_DIR=$(realpath -e "$(dirname "$0")")
source "$MAIN_DIR/src/lib.sh"
std::assert "1 is 1" 1 -eq 1
# shellcheck disable=2251
! std::assert "(ok) 1 is not 2" 1 -eq 2 &>/dev/null
std::assert-eq "1 is 1" 1 1
# shellcheck disable=2251
! std::assert-eq "1 is not 2" 1 2 &>/dev/null
std::wprintln "warn print"
std::eprintln "error print"