Skip to content

Commit

Permalink
test: assert on the two version strings
Browse files Browse the repository at this point in the history
to avoid release mistakes
  • Loading branch information
flavorjones committed Jul 5, 2022
1 parent 36df7f6 commit 37e7d44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
$VERBOSE = nil
end

puts "info: sqlite3-ruby version: #{SQLite3::VERSION}/#{SQLite3::VersionProxy::STRING}"
puts "info: sqlite3 version: #{SQLite3::SQLITE_VERSION}/#{SQLite3::SQLITE_LOADED_VERSION}"
puts "info: sqlcipher?: #{SQLite3.sqlcipher?}"
puts "info: threadsafe?: #{SQLite3.threadsafe?}"
Expand Down
4 changes: 4 additions & 0 deletions test/test_sqlite3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,9 @@ def test_threadsafe?
refute SQLite3.threadsafe?
end
end

def test_version_strings
assert_equal(SQLite3::VERSION, SQLite3::VersionProxy::STRING)
end
end
end

0 comments on commit 37e7d44

Please sign in to comment.