test/Tools/isac/ProgLang/tools.sml
author Alexander Kargl <akargl@brgkepler.net>
Thu, 21 Jul 2011 16:57:21 +0200
branchdecompose-isar
changeset 42145 43e7e9f835b1
parent 38031 460c24a6a6ba
child 42225 7daeeee85596
permissions -rw-r--r--
intermed: uncomment test
     1 (* Title: tests on Tools
     2    Author: Walther Neuper WN071229,
     3    (c) due to copyright terms
     4 *)
     5 val thy = @{theory "Real"};
     6 
     7 "-----------------------------------------------------------------";
     8 "table of contents -----------------------------------------------";
     9 "-----------------------------------------------------------------";
    10 "----------- fun matchsub ----------------------------------------";
    11 "-----------------------------------------------------------------";
    12 "-----------------------------------------------------------------";
    13 "-----------------------------------------------------------------";
    14 
    15 
    16 "----------- fun matchsub ----------------------------------------";
    17 "----------- fun matchsub ----------------------------------------";
    18 "----------- fun matchsub ----------------------------------------";
    19 if matchsub thy (str2term "(a + (b + c))") (str2term "?x + (?y + ?z)")
    20 then () else error "tools.sml matchsub a + (b + c)";
    21 
    22 if matchsub thy (str2term "(a + (b + c)) + d") (str2term "?x + (?y + ?z)")
    23 then () else error "tools.sml matchsub (a + (b + c)) + d";
    24