diff options
author | Adam Chlipala <adam@chlipala.net> | 2012-07-24 19:49:50 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2012-07-24 19:49:50 -0400 |
commit | 6f9747dbea34c09ae40f9859f63ad77abc1bd950 (patch) | |
tree | dec970c386478d5f45db5ef7601ea0699f4665b8 /tests | |
parent | 8a2b82151a52f3c2e99d60b76026b22b088b9e56 (diff) |
Fix JavaScript implementation of strcspn()
Diffstat (limited to 'tests')
-rw-r--r-- | tests/strcspn.ur | 6 |
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> |