From 7cfa621d957e18909cddab064955dc2ab6ad54be Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Thu, 10 Dec 2009 13:32:09 -0500 Subject: Basis.url and redirects --- tests/redirect.ur | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/redirect.ur (limited to 'tests/redirect.ur') diff --git a/tests/redirect.ur b/tests/redirect.ur new file mode 100644 index 00000000..da5114ca --- /dev/null +++ b/tests/redirect.ur @@ -0,0 +1,15 @@ +fun other () = redirect (bless "http://www.google.com/") + +fun further () = case checkUrl "http://www.google.com/" of + None => return Darn. + | Some url => redirect url + +fun failing () = case checkUrl "http://www.yahoo.com/" of + None => return Darn. + | Some url => redirect url + +fun main () = return + Go there
+ Go also there
+ Fail there +
-- cgit v1.2.3