コード例 #1
0
 def test_something_with_datetime(self):
     try:
         generate_symbol_table(contracts.something_with_datetime)
     except Exception:
         raise self.failureException
コード例 #2
0
 def test_something_optional_argument(self):
     try:
         generate_symbol_table(contracts.something_optional_argument)
     except Exception:
         raise self.failureException
コード例 #3
0
 def test_print_unique_list(self):
     try:
         generate_symbol_table(contracts.print_unique_list)
     except Exception:
         raise self.failureException
コード例 #4
0
 def test_simple_integer_comparison(self):
     try:
         generate_symbol_table(contracts.simple_integer_comparison)
     except Exception:
         raise self.failureException
コード例 #5
0
 def test_modulo_recursive(self):
     try:
         generate_symbol_table(contracts.modulo_recursive)
     except Exception:
         raise self.failureException
コード例 #6
0
 def test_four_comparator(self):
     try:
         generate_symbol_table(contracts.four_comparator)
     except Exception:
         raise self.failureException
コード例 #7
0
 def test_tuple_double_comparison(self):
     try:
         generate_symbol_table(contracts.tuple_double_comparison)
     except Exception:
         raise self.failureException
コード例 #8
0
 def test_disjunct_dict_merge(self):
     try:
         generate_symbol_table(contracts.disjunct_dict_merge)
     except Exception:
         raise self.failureException
コード例 #9
0
 def test_filter_list(self):
     try:
         generate_symbol_table(contracts.filter_list)
     except Exception:
         raise self.failureException
コード例 #10
0
 def test_integer_or_two_arguments(self):
     try:
         generate_symbol_table(contracts.integer_or_two_arguments)
     except Exception:
         raise self.failureException
コード例 #11
0
 def test_nested_nested_lists_flat(self):
     try:
         generate_symbol_table(contracts.nested_nested_lists_flat)
     except Exception:
         raise self.failureException
コード例 #12
0
 def test_safe_division(self):
     try:
         generate_symbol_table(contracts.safe_division)
     except Exception:
         raise self.failureException
コード例 #13
0
 def test_modulo_n_float_or_int(self):
     try:
         generate_symbol_table(contracts.modulo_n_float_or_int)
     except Exception:
         raise self.failureException
コード例 #14
0
 def test_print_only_letters(self):
     try:
         generate_symbol_table(contracts.print_only_letters)
     except Exception:
         raise self.failureException
コード例 #15
0
 def test_integer_and_complex(self):
     try:
         generate_symbol_table(contracts.integer_and_complex)
     except Exception:
         raise self.failureException
コード例 #16
0
 def test_json_gmail(self):
     try:
         generate_symbol_table(contracts.json_gmail)
     except Exception:
         raise self.failureException
コード例 #17
0
 def test_string_contains(self):
     try:
         generate_symbol_table(contracts.string_contains)
     except Exception:
         raise self.failureException
コード例 #18
0
 def test_string_callable(self):  # FAILS
     try:
         generate_symbol_table(contracts.string_callable)
     except Exception:
         raise self.failureException
コード例 #19
0
 def test_three_comparator_equal(self):
     try:
         generate_symbol_table(contracts.three_comparator_equal)
     except Exception:
         raise self.failureException
コード例 #20
0
 def test_nested_implication(self):
     try:
         generate_symbol_table(contracts.nested_implication)
     except Exception:
         raise self.failureException
コード例 #21
0
 def test_or_tuple(self):
     try:
         generate_symbol_table(contracts.or_tuple)
     except Exception:
         raise self.failureException
コード例 #22
0
 def test_sorted_dict(self):
     try:
         generate_symbol_table(contracts.sorted_dict)
     except Exception:
         raise self.failureException
コード例 #23
0
 def test_redundant_comparison(self):
     try:
         generate_symbol_table(contracts.redundant_comparison)
     except Exception:
         raise self.failureException
コード例 #24
0
 def test_list_tuples_alternative(self):
     try:
         generate_symbol_table(contracts.list_tuples_alternative)
     except Exception:
         raise self.failureException
コード例 #25
0
 def test_point_in_square(self):
     try:
         generate_symbol_table(contracts.point_in_square)
     except Exception:
         raise self.failureException
コード例 #26
0
 def test_list_tuples_optional(self):
     try:
         generate_symbol_table(contracts.list_tuples_optional)
     except Exception:
         raise self.failureException
コード例 #27
0
 def test_user_data_to_json(self):
     try:
         generate_symbol_table(contracts.user_data_to_json)
     except Exception:
         raise self.failureException
コード例 #28
0
 def test_integer_string_union_optional(self):
     try:
         generate_symbol_table(contracts.integer_string_union_optional)
     except Exception:
         raise self.failureException
コード例 #29
0
 def test_something_float(self):
     try:
         generate_symbol_table(contracts.something_float)
     except Exception:
         raise self.failureException
コード例 #30
0
 def test_print_limited_characters(self):
     try:
         generate_symbol_table(contracts.print_limited_characters)
     except Exception:
         raise self.failureException