Sha256: e8fa2dcb0cf83ece47de3e5c0bd91bb4bcad6f96fea8a74b197c63d58da8f947

Contents?: true

Size: 418 Bytes

Versions: 36

Compression:

Stored size: 418 Bytes

Contents

require 'cairo'

class ConstantsTest < Test::Unit::TestCase
  def test_text_cluster_flags
    constant_name = "TextClusterFlag"
    unless Cairo.satisfied_version?(1, 7, 6)
      assert_false(Cairo.const_defined?(constant_name))
      return
    end

    assert_true(Cairo.const_defined?(constant_name))
    assert_equal((0..1).to_a,
                 [0,
                  Cairo::TextClusterFlag::BACKWARD])
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
cairo-1.12.9-x86-mingw32 test/test_constants.rb
cairo-1.12.9 test/test_constants.rb
cairo-1.12.8-x86-mingw32 test/test_constants.rb
cairo-1.12.8 test/test_constants.rb
cairo-1.12.7-x86-mingw32 test/test_constants.rb
cairo-1.12.7 test/test_constants.rb
cairo-1.12.6-x86-mingw32 test/test_constants.rb
cairo-1.12.6 test/test_constants.rb
cairo-1.12.5-x86-mingw32 test/test_constants.rb
cairo-1.12.5 test/test_constants.rb
cairo-1.12.4-x86-mingw32 test/test_constants.rb
cairo-1.12.4 test/test_constants.rb
cairo-1.12.3-x86-mingw32 test/test_constants.rb
cairo-1.12.3 test/test_constants.rb
cairo-1.12.2-x86-mingw32 test/test_constants.rb
cairo-1.12.2 test/test_constants.rb
cairo-1.12.1-x86-mingw32 test/test_constants.rb
cairo-1.12.1 test/test_constants.rb
cairo-1.12.0-x86-mingw32 test/test_constants.rb
cairo-1.12.0 test/test_constants.rb