summaryrefslogtreecommitdiff
path: root/tests/strcspn.ur
diff options
context:
space:
mode:
Diffstat (limited to 'tests/strcspn.ur')
-rw-r--r--tests/strcspn.ur6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/strcspn.ur b/tests/strcspn.ur
new file mode 100644
index 00000000..8066010b
--- /dev/null
+++ b/tests/strcspn.ur
@@ -0,0 +1,6 @@
+fun main () : transaction page =
+ s <- source "";
+ return <xml><body>
+ <ctextbox source={s}/>
+ <button onclick={fn _ => v <- get s; alert (show (strcspn v "0123456789"))}/>
+ </body></xml>