Sha256: 43c2b44b893973c82dd98be4c3320c85b98b9ef65cae1b068b933c3c2cdfeb61

Contents?: true

Size: 379 Bytes

Versions: 8

Compression:

Stored size: 379 Bytes

Contents

require 'test_helper'

describe "Nested Struct" do

  specify "should be accessible" do
    Extension.new "nested" do |e|
      e.sources full_dir("headers/nested_struct.h")
      e.namespace "nested"
    end

    require 'nested'

    Klass::NestedStruct.new.one.should == 1

    lambda do
      Klass::PrivateNestedStruct.new
    end.should raise_error(NameError)
  end
  
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rbplusplus-1.4.0 test/struct_test.rb
rbplusplus-1.3.0 test/struct_test.rb
rbplusplus-1.2.1 test/struct_test.rb
rbplusplus-1.2.0 test/struct_test.rb
rbplusplus-1.1.0 test/struct_test.rb
rbplusplus-1.0.3 test/struct_test.rb
rbplusplus-1.0.1 test/struct_test.rb
rbplusplus-1.0 test/struct_test.rb