Пример #1
0
 def test_cdr_return_rest_of_tuple(self):
     from hiss.tuple_fun import cdr
     x = s(1, 2)
     assert_that(cdr(x), equal_to((2,)))
Пример #2
0
 def test__repr__includes_s(self):
     x = s(1, 2)
     assert_that(x.__repr__(), equal_to("s(1, 2)"))
Пример #3
0
 def test_car_returns_first_element(self):
     from hiss.tuple_fun import car
     x = s(1, 2)
     assert_that(car(x), equal_to(1))