Add a test to ensure correct version number format.

Hopefully this will avoid a repeat of the '2.4' debacle...
This commit is contained in:
Robert Haines 2025-02-01 16:31:20 +00:00
parent 43d845c2cb
commit 98881e23d1
1 changed files with 12 additions and 0 deletions

12
test/version_test.rb Normal file
View File

@ -0,0 +1,12 @@
# frozen_string_literal: true
require 'test_helper'
require 'zip/version'
class VersionTest < MiniTest::Test
def test_version
# Ensure all our versions numbers have at least MAJOR.MINOR.PATCH
# elements separated by dots, to comply with Semantic Versioning.
assert_match(/^\d+\.\d+\.\d+/, Zip::VERSION)
end
end