1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
require 'sqlite3'
require 'minitest/autorun'
if ENV['GITHUB_ACTIONS'] == 'true' || ENV['CI']
$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?}"
unless RUBY_VERSION >= "1.9"
require 'iconv'
end
module SQLite3
class TestCase < Minitest::Test
alias :assert_not_equal :refute_equal
alias :assert_not_nil :refute_nil
alias :assert_raise :assert_raises
def assert_nothing_raised
yield
end
end
end
|