Beispiel #1
0
 def test_should_get_28_as_the_7_triangle_number(self):
     assert_equals(triangle_number(position=7), 28)
Beispiel #2
0
 def test_should_get_45_as_the_9_triangle_number(self):
     assert_equals(triangle_number(position=9), 45)
Beispiel #3
0
 def test_should_get_55_as_the_10_triangle_number(self):
     assert_equals(triangle_number(position=10), 55)
Beispiel #4
0
 def test_should_get_6_as_the_3_triangle_number(self):
     assert_equals(triangle_number(position=3), 6)