X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=M17N.cs;h=4ded12d2ff97d88823d5f2f392e736e9c156f0e5;hb=8c8f06334e4d30e5c3c6e7e5877bfaf5a6936b42;hp=36635704cb1c0b1b5f666a30441f24080f91a4cc;hpb=a0ef1f720fb1ca57ac3364d5a06fe3553b9243e4;p=m17n%2Fm17n-lib-cs.git diff --git a/M17N.cs b/M17N.cs index 3663570..4ded12d 100644 --- a/M17N.cs +++ b/M17N.cs @@ -3,10 +3,11 @@ using M17N.Core; public class Test { - public static void Main() + static void symbol_test () { MSymbol sym1, sym2; + Console.WriteLine ("### Symbol test ###"); sym1 = new MSymbol ("abc"); Console.WriteLine (sym1.ToString ()); sym2 = new MSymbol ("abc"); @@ -24,4 +25,28 @@ public class Test Console.WriteLine (pp.ToString ()); Console.WriteLine (p.get (MSymbol.t)); } + + static void mtext_test () + { + MText mt; + + Console.WriteLine ("### MText test ###"); + mt = new MText ("abc"); + Console.WriteLine (mt); + Console.WriteLine (mt + new MText ("def")); + Console.WriteLine (mt); + } + + static void mtext_property_test () + { + Console.WriteLine ("### MTextProperty test ###"); + } + + public static void Main() + { + symbol_test (); + mtext_test (); + mtext_property_test (); + } + }