Skip to content

Commit

Permalink
report correct range -1..100
Browse files Browse the repository at this point in the history
  • Loading branch information
emiltin committed Feb 18, 2025
1 parent 984ee9e commit ff39381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/site/tlc/traffic_data_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
occupancies = occupancy_item["s"].split(",")
occupancies.each do |occupancy|
num = occupancy.to_i
expect((-1..100).cover?(num)).to be_truthy, "Occupancy must be in the range 0..100, got #{num}"
expect((-1..100).cover?(num)).to be_truthy, "Occupancy must be in the range -1..100, got #{num}"
end
end
end
Expand Down

0 comments on commit ff39381

Please sign in to comment.