Exemplo n.º 1
0
 def test_alone_two_files(self):
     tt = Batch(["alone", ["", ""], "diff"])
     cc = tt.get_compilation_commands(["foo.%l", "bar.%l"])
     self.assertEqual(cc, {
         "L1": fake_compilation_commands(
             COMPILATION_COMMAND_1, ["foo.l1", "bar.l1"], "bar_foo"),
         "L2": fake_compilation_commands(
             COMPILATION_COMMAND_2, ["foo.l2", "bar.l2"], "bar_foo"),
     })
Exemplo n.º 2
0
 def test_grader(self):
     tt = Batch(["grader", ["", ""], "diff"])
     cc = tt.get_compilation_commands(["foo.%l"])
     self.assertEqual(cc, {
         "L1": fake_compilation_commands(
             COMPILATION_COMMAND_1, ["foo.l1", "grader.l1"], "foo"),
         "L2": fake_compilation_commands(
             COMPILATION_COMMAND_2, ["foo.l2", "grader.l2"], "foo"),
     })