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); }
public void ExecuteRuby() { code = @"print 'chunky bacon!'"; testJob = new IdeoneJob(code, 17); testJob.Execute(); expectedOutput = "chunky bacon!"; Assert.AreEqual(expectedOutput, testJob.Output); }
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); }
public void BadCode() { code = "(siht_cOde]"; testJob = new IdeoneJob(code, 55); testJob.Execute(); }