Ejemplo n.º 1
0
 public void ExecutePython3()
 {
     code    = @"print(""Tabs\n\tare\n\t\tbetter\n\t\t\tthan\n\t\t\t\tspaces!"")";
     testJob = new IdeoneJob(code, 116);
     testJob.Execute();
     expectedOutput = "Tabs\n\tare\n\t\tbetter\n\t\t\tthan\n\t\t\t\tspaces!\n";
     Assert.AreEqual(expectedOutput, testJob.Output);
 }
Ejemplo n.º 2
0
 public void ExecuteRuby()
 {
     code    = @"print 'chunky bacon!'";
     testJob = new IdeoneJob(code, 17);
     testJob.Execute();
     expectedOutput = "chunky bacon!";
     Assert.AreEqual(expectedOutput, testJob.Output);
 }
Ejemplo n.º 3
0
 public void ExecuteJava7()
 {
     code = "class Example\n{\n\t" +
            "public static void main(String[] args)\n\t{\n\t\t" +
            "System.out.println(\"Looooool\");\n\t}\n}\n";
     testJob = new IdeoneJob(code, 55);
     testJob.Execute();
     expectedOutput = "Looooool\n";
     Assert.AreEqual(expectedOutput, testJob.Output);
 }
Ejemplo n.º 4
0
 public void BadCode()
 {
     code    = "(siht_cOde]";
     testJob = new IdeoneJob(code, 55);
     testJob.Execute();
 }