Skip to content

Commit 37e7d44

Browse files
committed
test: assert on the two version strings
to avoid release mistakes
1 parent 36df7f6 commit 37e7d44

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

test/helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
$VERBOSE = nil
66
end
77

8+
puts "info: sqlite3-ruby version: #{SQLite3::VERSION}/#{SQLite3::VersionProxy::STRING}"
89
puts "info: sqlite3 version: #{SQLite3::SQLITE_VERSION}/#{SQLite3::SQLITE_LOADED_VERSION}"
910
puts "info: sqlcipher?: #{SQLite3.sqlcipher?}"
1011
puts "info: threadsafe?: #{SQLite3.threadsafe?}"

test/test_sqlite3.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,9 @@ def test_threadsafe?
1717
refute SQLite3.threadsafe?
1818
end
1919
end
20+
21+
def test_version_strings
22+
assert_equal(SQLite3::VERSION, SQLite3::VersionProxy::STRING)
23+
end
2024
end
2125
end

0 commit comments

Comments
 (0)