def test_grains_on_square_3(self): self.assertEqual(square(3), 4)
def test_square_greater_than_64_raises_an_exception(self): with self.assertRaisesWithMessage(ValueError): square(65)
def test_grains_on_square_1(self): self.assertEqual(square(1), 1)
def test_16(self): self.assertEqual(square(16), 32768)
def test_64(self): self.assertEqual(square(64), 9223372036854775808)
def test_square_3(self): self.assertEqual(square(3), 4)
def test_3(self): self.assertEqual(square(3), 4)
def test_square_gt_64_raises_exception(self): with self.assertRaisesWithMessage(ValueError): square(65) with self.assertRaisesWithMessage(ValueError): total(65)
def test_square_1(self): self.assertEqual(square(1), 1)
def test_square_64(self): self.assertEqual(square(64), 9223372036854775808)
def test_square_negative_raises_exception(self): with self.assertRaisesWithMessage(ValueError): square(-1) with self.assertRaisesWithMessage(ValueError): total(-1)
def test_square_32(self): self.assertEqual(square(32), 2147483648)
def test_square_16(self): self.assertEqual(square(16), 32768)
def test_square_4(self): self.assertEqual(square(4), 8)
def test_grains_on_square_16(self): self.assertEqual(square(16), 32768)
def test_3(self): assert square(3) == 4
def test_grains_on_square_64(self): self.assertEqual(square(64), 9223372036854775808)
def test_4(self): assert square(4) == 8
def test_2(self): self.assertEqual(square(2), 2)
def test_16(self): assert square(16) == 32768
def test_4(self): self.assertEqual(square(4), 8)
def test_32(self): assert square(32) == 2147483648
def test_32(self): self.assertEqual(square(32), 2147483648)
def test_64(self): assert square(64) == 9223372036854775808
def test_negative_square_raises_an_exception(self): with self.assertRaisesWithMessage(ValueError): square(-1)
def test_square_0_raises_an_exception(self): with pytest.raises(ValueError): square(0)
def test_1(self): self.assertEqual(square(1), 1)
def test_negative_square_raises_an_exception(self): with pytest.raises(ValueError): square(-1)
def test_grains_on_square_2(self): self.assertEqual(square(2), 2)
def test_square_greater_than_64_raises_an_exception(self): with pytest.raises(ValueError): square(65)
def test_grains_on_square_4(self): self.assertEqual(square(4), 8)
def test_1(self): assert square(1) == 1
def test_grains_on_square_32(self): self.assertEqual(square(32), 2147483648)
def test_2(self): assert square(2) == 2
def test_square_0_raises_an_exception(self): with self.assertRaisesWithMessage(ValueError): square(0)
def test_square_2(self): self.assertEqual(square(2), 2)