Sha256: 4ee14b0bc769c1bbf2a718e07da725160e39ab7bd60cf530c9dcc2c53bae30dd

Contents?: true

Size: 458 Bytes

Versions: 2

Compression:

Stored size: 458 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

2 entries across 2 versions & 1 rubygems

Version Path
gir_ffi-0.7.7 test/ffi-glib/byte_array_test.rb
gir_ffi-0.7.6 test/ffi-glib/byte_array_test.rb