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.6 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.8.5 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.8.4 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.8.3 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.8.2 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.8.1 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.7.0 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.6.44 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.6.43 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.6.42 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.6.41 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.6.40 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.6.39 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.6.38 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.6.37 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.6.36 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.6.35 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.6.34 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.6.33 tracks/python/exercises/raindrops/raindrops_test.py
trackler-2.0.6.32 tracks/python/exercises/raindrops/raindrops_test.py