summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-09-07 10:48:51 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-09-07 10:48:51 -0400
commite5636bb18cfe24bb8aa8dd0df64dfe781622371c (patch)
tree73dd7a8f6b59a3bf6347d879b7bdb46bc8747ed6 /tests
parentdbb9192edae68feb230b5b231fcaf10fd68103e8 (diff)
'show' type class; htmlification optimizations
Diffstat (limited to 'tests')
-rw-r--r--tests/show.ur6
-rw-r--r--tests/show.urp5
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/show.ur b/tests/show.ur
new file mode 100644
index 00000000..6a22fe64
--- /dev/null
+++ b/tests/show.ur
@@ -0,0 +1,6 @@
+fun main () : transaction page = return <html><body>
+ 6 = {cdata (show _ 6)}<br/>
+ 12.34 = {cdata (show _ 12.34)}<br/>
+ Hi = {cdata (show _ "Hi")}<br/>
+ False = {cdata (show _ False)}<br/>
+</body></html>
diff --git a/tests/show.urp b/tests/show.urp
new file mode 100644
index 00000000..fa69257a
--- /dev/null
+++ b/tests/show.urp
@@ -0,0 +1,5 @@
+debug
+database dbname=test
+exe /tmp/webapp
+
+show