Sha256: 8f9354fdb911ee84d06fb65d0053aa67e3e02f4d52dd2396ab27c76fd3330f87

Contents?: true

Size: 433 Bytes

Versions: 71

Compression:

Stored size: 433 Bytes

Contents

import unittest

from zebra_puzzle import drinks_water, owns_zebra


# Tests adapted from `problem-specifications//canonical-data.json` @ v1.1.0

class ZebraPuzzleTest(unittest.TestCase):
    def test_resident_who_drinks_water(self):
        self.assertEqual(drinks_water(), "Norwegian")

    def test_resident_who_owns_zebra(self):
        self.assertEqual(owns_zebra(), "Japanese")


if __name__ == '__main__':
    unittest.main()

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
trackler-2.2.1.119 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.118 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.117 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.116 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.115 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.114 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.113 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.111 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.110 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.109 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.108 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py