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