#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""
"""

from day1 import *

import pytest


class TestSanta:
    """
    """
    def setup_method(self, method):
        """
        """
        self.santa = Santa()

    def test_constructor(self):
        """
        """
        assert self.santa.floor == 0

    @pytest.mark.parametrize("instructions,floor", [
       ("(())", 0),
       ("()()", 0),
       ("(((", 3),
       ("(()(()(", 3),
       ("))(((((", 3),
       ("())", -1),
       ("))(", -1),
       (")))", -3),
       (")())())", -3),
       ])
    def test_move(self, instructions, floor):
        """
        """
        for step in instructions:
            self.santa.move(step)
        assert self.santa.floor == floor

766d1ec9e6488016c89087b05544a02369d4200f
<mask token>


class TestSanta:
    <mask token>

    def setup_method(self, method):
        """
        """
        self.santa = Santa()
    <mask token>
    <mask token>

<mask token>


class TestSanta:
    <mask token>

    def setup_method(self, method):
        """
        """
        self.santa = Santa()

    def test_constructor(self):
        """
        """
        assert self.santa.floor == 0

    @pytest.mark.parametrize('instructions,floor', [('(())', 0), ('()()', 0
        ), ('(((', 3), ('(()(()(', 3), ('))(((((', 3), ('())', -1), ('))(',
        -1), (')))', -3), (')())())', -3)])
    def test_move(self, instructions, floor):
        """
        """
        for step in instructions:
            self.santa.move(step)
        assert self.santa.floor == floor

<mask token>


class TestSanta:
    """
    """

    def setup_method(self, method):
        """
        """
        self.santa = Santa()

    def test_constructor(self):
        """
        """
        assert self.santa.floor == 0

    @pytest.mark.parametrize('instructions,floor', [('(())', 0), ('()()', 0
        ), ('(((', 3), ('(()(()(', 3), ('))(((((', 3), ('())', -1), ('))(',
        -1), (')))', -3), (')())())', -3)])
    def test_move(self, instructions, floor):
        """
        """
        for step in instructions:
            self.santa.move(step)
        assert self.santa.floor == floor

<mask token>
from day1 import *
import pytest


class TestSanta:
    """
    """

    def setup_method(self, method):
        """
        """
        self.santa = Santa()

    def test_constructor(self):
        """
        """
        assert self.santa.floor == 0

    @pytest.mark.parametrize('instructions,floor', [('(())', 0), ('()()', 0
        ), ('(((', 3), ('(()(()(', 3), ('))(((((', 3), ('())', -1), ('))(',
        -1), (')))', -3), (')())())', -3)])
    def test_move(self, instructions, floor):
        """
        """
        for step in instructions:
            self.santa.move(step)
        assert self.santa.floor == floor

#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""
"""

from day1 import *

import pytest


class TestSanta:
    """
    """
    def setup_method(self, method):
        """
        """
        self.santa = Santa()

    def test_constructor(self):
        """
        """
        assert self.santa.floor == 0

    @pytest.mark.parametrize("instructions,floor", [
       ("(())", 0),
       ("()()", 0),
       ("(((", 3),
       ("(()(()(", 3),
       ("))(((((", 3),
       ("())", -1),
       ("))(", -1),
       (")))", -3),
       (")())())", -3),
       ])
    def test_move(self, instructions, floor):
        """
        """
        for step in instructions:
            self.santa.move(step)
        assert self.santa.floor == floor
