Skip to content

Commit 2b65c42

Browse files
committed
fix: use only one type for expected peek
1 parent 106bf8d commit 2b65c42

File tree

1 file changed

+2
-2
lines changed
  • algorithms_and_data_structures/data_structures/queue

1 file changed

+2
-2
lines changed

algorithms_and_data_structures/data_structures/queue/test_queue.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
test_subjects = [queue_list]
44

55

6-
def validate_state(queue, exp_len, exp_is_empty, exp_peek=""):
6+
def validate_state(queue, exp_len: int, exp_is_empty: bool, exp_peek: int = 0) -> None:
77
assert len(queue) == exp_len
88
assert queue.is_empty() == exp_is_empty
99

10-
if exp_peek and not queue.is_empty():
10+
if not queue.is_empty():
1111
assert queue.peek() == exp_peek
1212

1313

0 commit comments

Comments
 (0)