Skip to content

Commit

Permalink
Merge pull request #199 from Stegallo/black-format
Browse files Browse the repository at this point in the history
Black Formatting
  • Loading branch information
Stegallo authored Nov 12, 2023
2 parents c22f775 + 613645b commit 885b532
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion tests/common/test_utilites.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from common.utilities import bitand, bitor, lshift, rshift, bitnot
from common.utilities import bitand, bitnot, bitor, lshift, rshift


def test_bit_ops():
Expand Down
12 changes: 6 additions & 6 deletions tests/y_2015/test_2015_day7.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ def test_calculate_2():


def test_Element_resolve():
element = Element('123')
element = Element("123")
assert element.resolve({}) == 123

element = Element('a')
assert element.resolve({'a': Element('1')}) == 1
element = Element("a")
assert element.resolve({"a": Element("1")}) == 1

element = Element('NOT 1')
element = Element("NOT 1")
assert element.resolve({}) == 65534

element = Element('a')
assert element.resolve({'a': Element('b AND b'), 'b': Element('1')}) == 1
element = Element("a")
assert element.resolve({"a": Element("b AND b"), "b": Element("1")}) == 1
5 changes: 1 addition & 4 deletions y_2015/day7.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
from pydantic.dataclasses import dataclass

from common.aoc import AoCDay


from common.utilities import bitand, bitor, lshift, rshift, bitnot

from common.utilities import bitand, bitnot, bitor, lshift, rshift

OPERATORS: Dict[str, Any] = {
"NOT": bitnot,
Expand Down

0 comments on commit 885b532

Please sign in to comment.