Sha256: b016a990f07df004022291f068a95331b093f0f5ce859ab13c7d3515406b600e

Contents?: true

Size: 487 Bytes

Versions: 9

Compression:

Stored size: 487 Bytes

Contents

# frozen_string_literal: true
require 'gir_ffi_test_helper'

describe GLib::ByteArray do
  it 'can succesfully be created with GLib::ByteArray.new' do
    ba = GLib::ByteArray.new
    assert_instance_of GLib::ByteArray, ba
  end

  it 'allows strings to be appended to it' do
    ba = GLib::ByteArray.new
    ba.append 'abdc'
    pass
  end

  it 'has a working #to_string method' do
    ba = GLib::ByteArray.new
    ba = ba.append 'abdc'
    assert_equal 'abdc', ba.to_string
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gir_ffi-0.11.1 test/ffi-glib/byte_array_test.rb
gir_ffi-0.11.0 test/ffi-glib/byte_array_test.rb
gir_ffi-0.10.2 test/ffi-glib/byte_array_test.rb
gir_ffi-0.10.1 test/ffi-glib/byte_array_test.rb
gir_ffi-0.10.0 test/ffi-glib/byte_array_test.rb
gir_ffi-0.10.0.pre1 test/ffi-glib/byte_array_test.rb
gir_ffi-0.9.5 test/ffi-glib/byte_array_test.rb
gir_ffi-0.9.4 test/ffi-glib/byte_array_test.rb
gir_ffi-0.9.3 test/ffi-glib/byte_array_test.rb