Sha256: 6024c5c0e7f648d9313f5d14629fc65670fe9c16aab1e2b6c63a7a83ee509926
Contents?: true
Size: 889 Bytes
Versions: 91
Compression:
Stored size: 889 Bytes
Contents
require 'cairo' class ExceptionTest < Test::Unit::TestCase def test_new_symbols_since_1_7_2 if Cairo.satisfied_version?(1, 7, 2) assertion = :assert_defined else assertion = :assert_not_defined end send(assertion, "FontTypeMismatch") send(assertion, "UserFontImmutable") send(assertion, "UserFontError") send(assertion, "NegativeCount") send(assertion, "InvalidClusters") send(assertion, "InvalidSlant") send(assertion, "InvalidWeight") end def test_new_symbols_since_1_14_0 if Cairo.satisfied_version?(1, 14, 0) assertion = :assert_defined else assertion = :assert_not_defined end send(assertion, "JBIG2GlobalMissing") end private def assert_defined(name) assert_true(Cairo.const_defined?(name)) end def assert_not_defined(name) assert_false(Cairo.const_defined?(name)) end end
Version data entries
91 entries across 83 versions & 2 rubygems