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

Version Path
trackler-2.0.8.27 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.8.26 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.8.24 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.8.23 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.8.22 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.8.21 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.8.20 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.8.19 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.8.18 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.8.17 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.8.16 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.8.15 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.8.14 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.8.13 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.8.12 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.8.11 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.8.10 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.8.9 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.8.8 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.8.7 tracks/python/exercises/raindrops/raindrops_test.py