Beispiel #1
0
    def test_cut_n_neg_1(self):
        # arrange
        d = SpaceDeck(10)

        # act
        result = d.CutN(-4)

        # assert
        self.assertEqual(result, [6, 7, 8, 9, 0, 1, 2, 3, 4, 5])
Beispiel #2
0
    def test_cut_n_2(self):
        # arrange
        d = SpaceDeck(10)

        # act
        result = d.CutN(7)

        # assert
        self.assertEqual(result, [7, 8, 9, 0, 1, 2, 3, 4, 5, 6])
Beispiel #3
0
    def test_cut_n_neg(self):
        # arrange
        d = SpaceDeck(6)

        # act
        result = d.CutN(-4)

        # assert
        self.assertEqual(result, [2, 3, 4, 5, 0, 1])
Beispiel #4
0
    def test_cut_n(self):
        # arrange
        d = SpaceDeck(10)

        # act
        result = d.CutN(3)

        # assert
        self.assertEqual(result, [3, 4, 5, 6, 7, 8, 9, 0, 1, 2])