]> git.openstreetmap.org Git - rails.git/commit
Skip intermediate lengths when testing tag validity
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 16 Jun 2021 08:53:57 +0000 (09:53 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 16 Jun 2021 08:53:57 +0000 (09:53 +0100)
commit408c883d24af1d32b60a18bc0a5b1e5fdae30d53
treea89121a637aad7c57e9e7c41824e6c4a5e5c71c5
parent60b16b9421d08039698df0f9fa20408ebfb75cdf
Skip intermediate lengths when testing tag validity

It's really the upper and lower boundaries that we want to check,
and it's reasonable to assume all the intermediate values will work
fine if the boundary values are tested.

This also saves about 75% of the time taken and almost 85% of the
assertions when running all the model tests.
test/models/changeset_tag_test.rb
test/models/message_test.rb
test/models/node_tag_test.rb
test/models/old_node_tag_test.rb
test/models/old_relation_tag_test.rb
test/models/old_way_tag_test.rb
test/models/relation_tag_test.rb
test/models/user_preference_test.rb
test/models/way_tag_test.rb