Sha256: 796d538a8bf7e42e34e38c140df2c27f8591aba9f5585452e780c0d5ea1a2592
Contents?: true
Size: 1.29 KB
Versions: 101
Compression:
Stored size: 1.29 KB
Contents
import unittest from raindrops import raindrops class RaindropsTest(unittest.TestCase): def test_1(self): self.assertEqual("1", raindrops(1)) def test_3(self): self.assertEqual("Pling", raindrops(3)) def test_5(self): self.assertEqual("Plang", raindrops(5)) def test_7(self): self.assertEqual("Plong", raindrops(7)) def test_6(self): self.assertEqual("Pling", raindrops(6)) def test_9(self): self.assertEqual("Pling", raindrops(9)) def test_10(self): self.assertEqual("Plang", raindrops(10)) def test_14(self): self.assertEqual("Plong", raindrops(14)) def test_15(self): self.assertEqual("PlingPlang", raindrops(15)) def test_21(self): self.assertEqual("PlingPlong", raindrops(21)) def test_25(self): self.assertEqual("Plang", raindrops(25)) def test_35(self): self.assertEqual("PlangPlong", raindrops(35)) def test_49(self): self.assertEqual("Plong", raindrops(49)) def test_52(self): self.assertEqual("52", raindrops(52)) def test_105(self): self.assertEqual("PlingPlangPlong", raindrops(105)) def test_12121(self): self.assertEqual("12121", raindrops(12121)) if __name__ == '__main__': unittest.main()
Version data entries
101 entries across 101 versions & 1 rubygems