Skip to content

Commit

Permalink
fix formats
Browse files Browse the repository at this point in the history
  • Loading branch information
madcpf committed Sep 29, 2023
1 parent 8d215e1 commit 1d51af0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion unitary/examples/quantum_chinese_chess/enums_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.
from unitary.examples.quantum_chinese_chess.enums import Piece, Language


def test_piece_type_of():
assert Piece.type_of("s") == Piece.Type.SOLDIER
assert Piece.type_of("S") == Piece.Type.SOLDIER
Expand All @@ -21,7 +22,7 @@ def test_piece_type_of():
assert Piece.type_of(".") == Piece.Type.EMPTY
assert Piece.type_of("b") == None


def test_piece_symbol():
p0 = Piece(Piece.Type.CANNON, Piece.Color.RED)
assert p0.red_symbol() == "C"
Expand Down

0 comments on commit 1d51af0

Please sign in to comment.