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.180 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.179 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.178 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.177 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.176 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.175 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.174 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.173 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.172 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.171 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.170 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.169 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.167 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.166 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.165 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.164 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.163 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.162 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.161 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py
trackler-2.2.1.160 tracks/python/exercises/zebra-puzzle/zebra_puzzle_test.py