Sha256: 1f2aa6efcdb92836df844926a4b9154ea1189be99aade19e1b92b0eacf29cbde

Contents?: true

Size: 506 Bytes

Versions: 8

Compression:

Stored size: 506 Bytes

Contents

require File.expand_path('../gir_ffi_test_helper.rb', File.dirname(__FILE__))

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

8 entries across 8 versions & 1 rubygems

Version Path
gir_ffi-0.4.0 test/ffi-glib/byte_array_test.rb
gir_ffi-0.3.2 test/ffi-glib/byte_array_test.rb
gir_ffi-0.3.1 test/ffi-glib/byte_array_test.rb
gir_ffi-0.3.0 test/ffi-glib/byte_array_test.rb
gir_ffi-0.2.3 test/ffi-glib/byte_array_test.rb
gir_ffi-0.2.2 test/ffi-glib/byte_array_test.rb
gir_ffi-0.2.1 test/ffi-glib/byte_array_test.rb
gir_ffi-0.2.0 test/ffi-glib/byte_array_test.rb