Sha256: 1478c7ba971a62d0dd85dff66e8a83c9f06dc5644ceb620096b031ee32663c46
Contents?: true
Size: 576 Bytes
Versions: 7
Compression:
Stored size: 576 Bytes
Contents
# 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
7 entries across 7 versions & 1 rubygems