summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2011-01-16 10:38:03 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2011-01-16 10:38:03 -0500
commit7c9b1361afcebf3d3382873dbdb5c7f2e5e7e087 (patch)
treefe0b592698e1c2198b6af517782f7c8608065759 /tests
parent24796b700bb497897bdcd2671c1083f0c462906a (diff)
Patch from Vladimir Shabanov to support crypt under OS X
Diffstat (limited to 'tests')
-rw-r--r--tests/crypt.ur7
-rw-r--r--tests/crypt.urs1
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/crypt.ur b/tests/crypt.ur
new file mode 100644
index 00000000..e1f48c65
--- /dev/null
+++ b/tests/crypt.ur
@@ -0,0 +1,7 @@
+fun cryptIt r = return <xml><body>
+ {[crypt r.Pass "AB"]}
+</body></xml>
+
+fun main () = return <xml><body>
+ <form><textbox{#Pass}/> <submit action={cryptIt}/></form>
+</body></xml>
diff --git a/tests/crypt.urs b/tests/crypt.urs
new file mode 100644
index 00000000..6ac44e0b
--- /dev/null
+++ b/tests/crypt.urs
@@ -0,0 +1 @@
+val main : unit -> transaction page