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.139 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.138 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.137 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.136 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.135 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.134 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.133 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.132 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.131 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.130 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.129 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.128 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.127 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.126 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.125 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.124 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.123 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.122 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.121 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.120 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py