Skip to content

Commit

Permalink
Added a test for the Wondrous painting thing
Browse files Browse the repository at this point in the history
  • Loading branch information
hatkirby committed May 20, 2024
1 parent 7c29ed1 commit 88f6532
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions worlds/lingo/utils/validate_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
mentioned_panels = Set[]
mentioned_sunwarp_entrances = Set[]
mentioned_sunwarp_exits = Set[]
mentioned_paintings = Set[]

door_groups = {}

Expand Down Expand Up @@ -257,6 +258,12 @@
unless paintings.include? painting["id"] then
puts "#{room_name} :::: Invalid Painting ID #{painting["id"]}"
end

if mentioned_paintings.include?(painting["id"]) then
puts "Painting #{painting["id"]} is mentioned more than once"
else
mentioned_paintings.add(painting["id"])
end
else
puts "#{room_name} :::: Painting is missing an ID"
end
Expand Down

0 comments on commit 88f6532

Please sign in to comment.