X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=test.icl;h=dddfbe1a6c9d7473d65aa7aee81aef0e21f935c6;hb=dd851e8574c37cad729a3ba3b4e64a548bb4422e;hp=3289a5f6050cc70753f10008ffc3b119459d812e;hpb=1e730669e3113d736ffc27814aa663b54c5fb72f;p=clean-tests.git diff --git a/test.icl b/test.icl index 3289a5f..dddfbe1 100644 --- a/test.icl +++ b/test.icl @@ -1,10 +1,20 @@ module test -import iTasks -import System.File -import System.Time +import StdEnv + +import graph_copy_with_names, symbols_in_program +import System.CommandLine + +test :: !{#Symbol} a -> a +test symbols a + # (a, b, c) = copy_to_string_with_names a + # (a, r) = copy_from_string_with_names a b c symbols + = a + +polyid :: (A.a: a -> a) -> (Int, Bool) +polyid f = (f 42, f True) Start w - # (fi, w) = getFileInfo "/home/mrl/projects/clean/clean-tests/test.prj" w - # (ns, w) = nsTime w - = (fi, ns, w) + # ([argv0:_], w) = getCommandLine w + # (symbols, w) = accFiles (read_symbols argv0) w + = test symbols (polyid id)