view tests/substring.ur @ 1100:9645e3c2978e

Test case for character code escapes
author Adam Chlipala <adamc@hcoop.net>
date Tue, 29 Dec 2009 15:03:44 -0500
parents 20fe00fd81da
children
line wrap: on
line source
fun main () : transaction page = return <xml>
  {[case String.split "abc{" #"{" of
        None => "!"
      | Some (pre, post) => pre ^ post]}
</xml>