#!/bin/bash # Simple test to verify framework works SCRIPT_DIR="$(dirname "$(realpath "$0")")" # Determine the project root directory PROJECT_ROOT="$(dirname "$SCRIPT_DIR")" source "${SCRIPT_DIR}/test-framework.sh" test_basic_assertions() { assert_equals "hello" "hello" "Basic string equality" assert_not_equals "hello" "world" "Basic string inequality" # Create a test file local test_file="$TEST_TEMP_DIR/test.txt" echo "test content" > "$test_file" assert_file_exists "$test_file" "Test file creation" assert_contains "$(cat "$test_file")" "test" "File content check" } test_math() { local result=$((2 + 2)) assert_equals "4" "$result" "Basic math" } # Run if executed directly if [ "${BASH_SOURCE[0]}" = "${0}" ]; then run_tests fi