Skip to content

Commit 595f8d8

Browse files
authored
Merge pull request #1147 from mstphayassin/bugfix/placing-units-check
Fix: fixed lesson 25 part 2 test logic
2 parents 2b360d3 + c2a56a7 commit 595f8d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

course/lesson-26-looping-over-dictionaries/place-units/TestPlaceUnits.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ func test_all_items_are_displayed():
1212
var source: Dictionary = grid.get("units")
1313
var dicts_match := displayed.has_all(source.keys())
1414
if dicts_match:
15-
for value in displayed.values():
16-
if not source.values().has(value):
15+
for key in displayed:
16+
if displayed[key] != source[key]:
1717
dicts_match = false
1818
break
1919

0 commit comments

Comments
 (0)