29 "--------- encode ^^^ -> ^ ---------------------------------------"; |
29 "--------- encode ^^^ -> ^ ---------------------------------------"; |
30 "--------- encode ^^^ -> ^ ---------------------------------------"; |
30 "--------- encode ^^^ -> ^ ---------------------------------------"; |
31 "--------- encode ^^^ -> ^ ---------------------------------------"; |
31 "--------- encode ^^^ -> ^ ---------------------------------------"; |
32 val str = "a^^^2+b^^^2=c^^^2"; |
32 val str = "a^^^2+b^^^2=c^^^2"; |
33 if decode str = "a^2+b^2=c^2" then () |
33 if decode str = "a^2+b^2=c^2" then () |
34 else raise error "mathml.sml: diff.behav. in encode ^^^ -> ^"; |
34 else error "mathml.sml: diff.behav. in encode ^^^ -> ^"; |
35 |
35 |
36 "--------- encode < -> < and > -> > --------------------------"; |
36 "--------- encode < -> < and > -> > --------------------------"; |
37 "--------- encode < -> < and > -> > --------------------------"; |
37 "--------- encode < -> < and > -> > --------------------------"; |
38 "--------- encode < -> < and > -> > --------------------------"; |
38 "--------- encode < -> < and > -> > --------------------------"; |
39 val str = "?bdv occurs_in ?b; 0 < ?n |] ==> ?a / ?b ^ ?n = ?a * ?b ^ - ?n"; |
39 val str = "?bdv occurs_in ?b; 0 < ?n |] ==> ?a / ?b ^ ?n = ?a * ?b ^ - ?n"; |
40 if decode str = |
40 if decode str = |
41 "?bdv occurs_in ?b; 0 < ?n |] ==> ?a / ?b ^ ?n = ?a * ?b ^ - ?n" |
41 "?bdv occurs_in ?b; 0 < ?n |] ==> ?a / ?b ^ ?n = ?a * ?b ^ - ?n" |
42 then () else raise error "mathml.sml: diff.behav. in encode '<' and '>'"; |
42 then () else error "mathml.sml: diff.behav. in encode '<' and '>'"; |
43 |
43 |
44 "----- check 'manually' the xml-output of calling functions ------"; |
44 "----- check 'manually' the xml-output of calling functions ------"; |
45 formula2xml 1 (str2term ) |
45 formula2xml 1 (str2term ) |
46 |
46 |
47 (*==================================================================*) |
47 (*==================================================================*) |