Sha256: 833dcd6aec3c052ba8ff6b882c19d25af888c178002faf24d1634b7b57e97532

Contents?: true

Size: 457 Bytes

Versions: 13

Compression:

Stored size: 457 Bytes

Contents

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

13 entries across 13 versions & 1 rubygems

Version Path
gir_ffi-0.9.2 test/ffi-glib/byte_array_test.rb
gir_ffi-0.9.1 test/ffi-glib/byte_array_test.rb
gir_ffi-0.9.0 test/ffi-glib/byte_array_test.rb
gir_ffi-0.8.6 test/ffi-glib/byte_array_test.rb
gir_ffi-0.8.5 test/ffi-glib/byte_array_test.rb
gir_ffi-0.8.4 test/ffi-glib/byte_array_test.rb
gir_ffi-0.8.3 test/ffi-glib/byte_array_test.rb
gir_ffi-0.8.2 test/ffi-glib/byte_array_test.rb
gir_ffi-0.8.1 test/ffi-glib/byte_array_test.rb
gir_ffi-0.8.0 test/ffi-glib/byte_array_test.rb
gir_ffi-0.7.10 test/ffi-glib/byte_array_test.rb
gir_ffi-0.7.9 test/ffi-glib/byte_array_test.rb
gir_ffi-0.7.8 test/ffi-glib/byte_array_test.rb