예제 #1
0
 def testPatternMatching(self):
     self.assertEqual(
         ((1, 3), 4, (5, 6)),
         instructions.interpret(test_programs.synthetic_pattern_program()))
예제 #2
0
 def interpret(n):
     return instructions.interpret(
         test_programs.fibonacci_function_calls(), n)
예제 #3
0
 def interpret(n):
     return instructions.interpret(test_programs.fibonacci_program(), n)
예제 #4
0
 def interpret(n):
     return instructions.interpret(
         test_programs.synthetic_pattern_variable_program(), n)
예제 #5
0
 def interpret(n):
     return instructions.interpret(test_programs.single_if_program(), n)
예제 #6
0
 def interpret(n):
     return instructions.interpret(test_programs.constant_program(), n)