示例#1
0
 public static int LibwasmText()
 {
     return(RunTests.RunMany(
                new AssemblerTests(),
                new LexerTests(),
                new ParserTests()));
 }
示例#2
0
文件: Program.cs 项目: dadhi/ecsharp
 public static int Test_LeMP()
 {
     return(RunTests.RunMany(
                new MacroProcessorTests(),
                new PreludeMacroTests_Les2(),
                new PreludeMacroTests_Les3(),
                new CompilerTests(),
                new SmallerMacroTests(),
                new LiteralTests(),
                new TestAlgebraicDataTypes(),
                new TestCodeContractMacros(),
                new TestCodeQuoteMacro(),
                new TestMacroCombinations(),
                new TestMatchCodeMacro(),
                new TestStaticMatchCodeMacro(),
                new TestStaticDeconstructMacro(),
                new TestMatchMacro(),
                new TestOnFinallyReturnThrowMacros(),
                new TestReplaceAndDefineMacros(),
                new TestUseSequenceExpressionsMacro(),
                new TestSetOrCreateMemberMacro(),
                new TestUnrollMacro(),
                new TestUseSymbolsMacro(),
                new TestCompileTimeMacros(),
                new TestUserDefinedMacroMacro()));
 }
示例#3
0
 public static int Test_Ecs()
 {
     return(RunTests.RunMany(
                new EcsLexerTests(),
                new EcsParserTests(),
                new EcsNodePrinterTests(),
                new EcsValidatorTests()));
 }
示例#4
0
        public static int Test_LLLPG()
        {
            Console.WriteLine("Running LLLPG tests...");

            return(RunTests.RunMany(
                       new LlpgParserTests(),
                       new LlpgGeneralTests(),
                       new LlpgCoreTests(),
                       new LlpgAutoValueSaverVisitorTests(),
                       new LlpgTestLargerExamples(),
                       new LlpgBugsAndSlugs()));
        }
示例#5
0
        public static int Test_LLLPG()
        {
            Console.WriteLine("Running tests... (a small number of them are broken)");

            // Workaround for MS bug: Assert(false) will not fire in debugger
            Debug.Listeners.Clear();
            Debug.Listeners.Add(new DefaultTraceListener());

            return(RunTests.RunMany(
                       new LlpgParserTests(),
                       new LlpgGeneralTests(),
                       new LlpgCoreTests(),
                       new LlpgAutoValueSaverVisitorTests(),
                       new LlpgTestLargerExamples(),
                       new LlpgBugsAndSlugs()));
        }
示例#6
0
 public static int Test_LeMP()
 {
     return(RunTests.RunMany(
                new MacroProcessorTests(),
                new PreludeMacroTests(),
                new SmallerMacroTests(),
                new TestAlgebraicDataTypes(),
                new TestCodeContractMacros(),
                new TestCodeQuoteMacro(),
                new TestMacroCombinations(),
                new TestMatchCodeMacro(),
                new TestMatchMacro(),
                new TestOnFinallyReturnThrowMacros(),
                new TestReplaceMacro(),
                new TestSequenceExpressionMacro(),
                new TestSetOrCreateMemberMacro(),
                new TestUnrollMacro()));
 }
示例#7
0
 public static int LibwasmOptimize()
 {
     return(RunTests.RunMany(
                new FunctionBodyOptimizationTests()));
 }
示例#8
0
 public static int LibwasmInterpret()
 {
     return(RunTests.RunMany(
                new DefaultInterpreterTests(),
                new LinearMemoryTests()));
 }
示例#9
0
 public static int SpecScripts()
 {
     return(RunTests.RunMany(
                new ScriptTests()));
 }