about summary refs log tree commit diff stats
path: root/awk/rawk/scratch/minimal_stdlib_test.rawk
diff options
context:
space:
mode:
Diffstat (limited to 'awk/rawk/scratch/minimal_stdlib_test.rawk')
-rw-r--r--awk/rawk/scratch/minimal_stdlib_test.rawk22
1 files changed, 22 insertions, 0 deletions
diff --git a/awk/rawk/scratch/minimal_stdlib_test.rawk b/awk/rawk/scratch/minimal_stdlib_test.rawk
new file mode 100644
index 0000000..3780733
--- /dev/null
+++ b/awk/rawk/scratch/minimal_stdlib_test.rawk
@@ -0,0 +1,22 @@
+BEGIN {
+    print "=== Minimal Standard Library Test ==="
+}
+
+RAWK {
+    $test_func = (x) -> {
+        return is_number(x);
+    };
+}
+
+{
+    # Test basic functionality
+    result = test_func(42);
+    print "Result:", result;
+    
+    # Test direct calls
+    print "is_number(42):", is_number(42);
+    print "is_positive(10):", is_positive(10);
+    
+    print "Test completed";
+    exit 0;
+} 
\ No newline at end of file