view tests/localfun.ur @ 2164:728aaeea12fd

Add a simple 'make test' target
author Adam Chlipala <adam@chlipala.net>
date Wed, 29 Jul 2015 10:08:03 -0400
parents 5f478ecf65e4
children
line wrap: on
line source
fun boom s =
    let
        val bonk =
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s

        val boonk = fn () =>
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s

        fun booonk () =
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s;
            debug s
    in
        bonk; bonk; boonk (); boonk (); booonk (); booonk ()
    end

fun main () : transaction page =
    boom "test";
    return <xml/>