Sha256: dc5db6358938cf55e8ce43144a28751df3d317a88c86c933544bc95c110ff551
Contents?: true
Size: 1.25 KB
Versions: 32
Compression:
Stored size: 1.25 KB
Contents
# This file is part of Libusb for Ruby. # # Libusb for Ruby is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Libusb for Ruby is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License # along with Libusb for Ruby. If not, see <http://www.gnu.org/licenses/>. require "minitest/autorun" require "libusb" class TestLibusbVersion < Minitest::Test def setup @v = LIBUSB.version end def test_version_parts assert_operator @v.major, :>=, 0 assert_operator @v.minor, :>=, 0 assert_operator @v.micro, :>=, 0 assert_operator @v.nano, :>=, 0 assert_kind_of String, @v.rc end def test_version_string assert_match(/^\d+\.\d+\.\d+/, @v.to_s) assert_match(/^#<LIBUSB::Version \d+\.\d+\.\d+/, @v.inspect) end def test_gem_version_string assert_match(/^\d+\.\d+\.\d+/, LIBUSB::VERSION) end end
Version data entries
32 entries across 32 versions & 1 rubygems