about summary refs log tree commit diff stats
path: root/awk/rawk/scratch/simple_stdlib_test.rawk
diff options
context:
space:
mode:
Diffstat (limited to 'awk/rawk/scratch/simple_stdlib_test.rawk')
-rw-r--r--awk/rawk/scratch/simple_stdlib_test.rawk22
1 files changed, 22 insertions, 0 deletions
diff --git a/awk/rawk/scratch/simple_stdlib_test.rawk b/awk/rawk/scratch/simple_stdlib_test.rawk
new file mode 100644
index 0000000..d586ace
--- /dev/null
+++ b/awk/rawk/scratch/simple_stdlib_test.rawk
@@ -0,0 +1,22 @@
+BEGIN {
+    print "=== Simple Standard Library Test ==="
+}
+
+RAWK {
+    $test_email = (email) -> {
+        return is_email(email);
+    };
+}
+
+{
+    # Test email validation
+    result = test_email("user@example.com");
+    print "Email test result:", result;
+    
+    # Test direct function calls
+    print "is_number(42):", is_number(42);
+    print "is_string('hello'):", is_string("hello");
+    
+    print "Test completed";
+    exit 0;
+} 
\ No newline at end of file