diff options
Diffstat (limited to 'awk/rawk/tests')
-rw-r--r-- | awk/rawk/tests/simple_stdlib_test.rawk | 2 | ||||
-rw-r--r-- | awk/rawk/tests/test_errors.rawk | 2 | ||||
-rw-r--r-- | awk/rawk/tests/test_functional.rawk | 2 | ||||
-rwxr-xr-x | awk/rawk/tests/test_runner.sh | 18 |
4 files changed, 12 insertions, 12 deletions
diff --git a/awk/rawk/tests/simple_stdlib_test.rawk b/awk/rawk/tests/simple_stdlib_test.rawk index 7245342..0a726df 100644 --- a/awk/rawk/tests/simple_stdlib_test.rawk +++ b/awk/rawk/tests/simple_stdlib_test.rawk @@ -14,7 +14,7 @@ RAWK { expect_true(is_string("hello"), "hello should be a string"); expect_false(is_number("abc"), "abc should not be a number"); - # Test our custom function + # Test the custom function expect_true(test_function(5), "5 should pass our test"); expect_false(test_function(-3), "-3 should fail our test"); expect_false(test_function("text"), "text should fail our test"); diff --git a/awk/rawk/tests/test_errors.rawk b/awk/rawk/tests/test_errors.rawk index 233ba33..2376822 100644 --- a/awk/rawk/tests/test_errors.rawk +++ b/awk/rawk/tests/test_errors.rawk @@ -1,4 +1,4 @@ -# This test file should fail compilation due to missing RAWK block +# This test file should fail compilation because it is missing a RAWK block BEGIN { print "This should fail because there's no RAWK block" } diff --git a/awk/rawk/tests/test_functional.rawk b/awk/rawk/tests/test_functional.rawk index 9cf1b77..41020a3 100644 --- a/awk/rawk/tests/test_functional.rawk +++ b/awk/rawk/tests/test_functional.rawk @@ -45,7 +45,7 @@ RAWK { texts[1] = "hello world"; texts[2] = "functional programming"; - texts[3] = "awk is awesome"; + texts[3] = "awk is rad"; # Test map function doubled_count = map("double", numbers, doubled); diff --git a/awk/rawk/tests/test_runner.sh b/awk/rawk/tests/test_runner.sh index 18f3fa2..d0b316d 100755 --- a/awk/rawk/tests/test_runner.sh +++ b/awk/rawk/tests/test_runner.sh @@ -1,6 +1,6 @@ #!/bin/bash -echo "๐งช Fixed rawk v2.0.0 Test Runner" +echo "a rawking test runner" echo "==================================" # Colors for output @@ -64,37 +64,37 @@ run_error_test() { # Run all tests echo "" -echo "๐ Running basic functionality tests..." +echo "Running basic functionality tests..." run_test "test_basic.rawk" "Basic Functionality" echo "" -echo "๐ Running simple standard library tests..." +echo "Running simple standard library tests..." run_test "simple_stdlib_test.rawk" "Simple Standard Library" echo "" -echo "๐ง Running full standard library tests..." +echo "Running full standard library tests..." run_test "test_stdlib.rawk" "Full Standard Library" echo "" -echo "๐ง Running functional programming tests..." +echo "Running functional programming tests..." run_test "test_functional.rawk" "Functional Programming" echo "" -echo "โ Running error handling tests..." +echo "Running error handling tests..." run_error_test "test_errors.rawk" "Error Handling" # Summary echo "" echo "==================================" -echo "๐ Test Summary:" +echo "Test Summary:" echo " Total tests: $TOTAL" echo -e " ${GREEN}Passed: $PASSED${NC}" echo -e " ${RED}Failed: $FAILED${NC}" if [ $FAILED -eq 0 ]; then - echo -e "\n${GREEN}๐ All tests passed!${NC}" + echo -e "\n${GREEN}All tests passed!${NC}" exit 0 else - echo -e "\n${RED}๐ฅ Some tests failed!${NC}" + echo -e "\n${RED}Some tests failed!${NC}" exit 1 fi \ No newline at end of file |