Пример #1
0
        public static void Main(string[] args)
        {
            var testProgram = TestProgram.GetTestPrograms().Where(f => f.Name.Contains("Python") && f.Name.Contains("Hello")).Single();

            //TestEngineThroughService(testProgram.Program, testProgram.Lang);
            TestEngineDirectly(testProgram.Program, testProgram.Lang);
        }
Пример #2
0
        public static void Main(string[] args)
        {
            /*var prog =
             * @"#include <iostream>
             #include <string>
             #include <vector>
             * int main()
             * {
             * std::vector<int> *s;
             * s->
             * }
             * ";
             * var res = YcmdEngine.GetCppCompletions (prog, 6, 7);*/
            //var testProgram = TestProgram.GetTestPrograms().Where(f => f.Name.Contains("Java") && f.Name.Contains("Hello")).Single();
            //var testProgram = TestProgram.GetTestPrograms().Where(f => f.Name.Contains("Python") && f.Name.Contains("Hello")).Single();
            //var testProgram = TestProgram.GetTestPrograms().Where(f => f.Name.Contains("C_") && f.Name.Contains("Hello")).Single();
            //var testProgram = TestProgram.GetTestPrograms().Where(f => f.Name.Contains("Javascript") && f.Name.Contains("Hello")).Single();


            var testProgram = TestProgram.GetTestPrograms().Where(f => f.Name.Contains("Haskell") && f.Name.Contains("_GHC")).Single();

            //TestEngineThroughService(testProgram.Program, testProgram.Input, testProgram.Lang, testProgram.Args);
            TestEngineDirectly(testProgram.Program, testProgram.Input, testProgram.Lang, testProgram.Args);


            //var res = Diff.GetDiff("", "");
            //Console.WriteLine(res.IsError);
            //Console.WriteLine(res.Result);
        }
Пример #3
0
        public static void Main(string[] args)
        {
            //var testProgram = TestProgram.GetTestPrograms().Where(f => f.Name.Contains("Java") && f.Name.Contains("Hello")).Single();
            //var testProgram = TestProgram.GetTestPrograms().Where(f => f.Name.Contains("Python") && f.Name.Contains("Hello")).Single();
            //var testProgram = TestProgram.GetTestPrograms().Where(f => f.Name.Contains("C_") && f.Name.Contains("Hello")).Single();
            //var testProgram = TestProgram.GetTestPrograms().Where(f => f.Name.Contains("Javascript") && f.Name.Contains("Hello")).Single();


            var testProgram = TestProgram.GetTestPrograms().Where(f => f.Name.Contains("Tcl_") && f.Name.Contains("_Hello")).Single();

            //TestEngineThroughService(testProgram.Program, testProgram.Input, testProgram.Lang, testProgram.Args);
            TestEngineDirectly(testProgram.Program, testProgram.Input, testProgram.Lang, testProgram.Args);


            //var res = Diff.GetDiff("", "");
            //Console.WriteLine(res.IsError);
            //Console.WriteLine(res.Result);
        }