Sha256: 8a9c3b09f32bb3d8c9566c26fbde989aa138040d698e6be085b01f5ec0f741c8
Contents?: true
Size: 591 Bytes
Versions: 9
Compression:
Stored size: 591 Bytes
Contents
# coding: utf-8 # frozen_string_literal: true require 'gir_ffi_test_helper' GirFFI.setup :Pango # Tests generated methods and functions in the Pango namespace. describe Pango do describe Pango::Language do it 'has a working method #get_scripts' do lang = Pango::Language.from_string 'ja' result = lang.get_scripts if result.is_a? GirFFI::SizedArray scripts = result else ptr, size = *result scripts = GirFFI::SizedArray.new Pango::Script, size, ptr end scripts.must_be :==, [:han, :katakana, :hiragana] end end end
Version data entries
9 entries across 9 versions & 1 rubygems