changeset 150:cc0bc756f66f

Full gform test works
author Adam Chlipala <adamc@hcoop.net>
date Thu, 24 Jul 2008 10:15:49 -0400
parents 7420fa18d657
children 6c14e78feb6d
files tests/gform.lac
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/gform.lac	Thu Jul 24 10:09:21 2008 -0400
+++ b/tests/gform.lac	Thu Jul 24 10:15:49 2008 -0400
@@ -15,7 +15,13 @@
         con rs = M.rs
 
         val handler = fn x : $(stringify M.rs) => <html><body>
-                OK.
+                {fold [fn rs :: {Unit} => $(stringify rs) -> xml body [] []]
+                        (fn nm :: Name => fn u :: Unit => fn rest :: {Unit} =>
+                                fn f : $(stringify rest) -> xml body [] [] =>
+                                fn x : $(stringify ([nm] ++ rest)) =>
+                                        <body><li> {cdata x.nm}</li> {f (x -- nm)}</body>)
+                        (fn x => <body></body>)
+                        [M.rs] x}
         </body></html>
 
         val page = fn () => <html><body>