spec/gogyou_spec.rb in gogyou-0.2.2 vs spec/gogyou_spec.rb in gogyou-0.2.3

- old
+ new

@@ -84,11 +84,13 @@ Gogyou::Model::Field[0, :a, nil, Gogyou::Primitives::CHAR], Gogyou::Model::Field[8, :b, nil, Gogyou::Primitives::INT], Gogyou::Model::Field[8, :e, [4], Gogyou::Model::Struct[ 16, 8, Gogyou::Model::Field[0, :c, nil, Gogyou::Primitives::INT64_T], - Gogyou::Model::Field[8, :d, nil, Gogyou::Primitives::INT32_T]]]] + Gogyou::Model::Field[8, :d, nil, Gogyou::Primitives::INT32_T] + ]] + ] expect(x::MODEL).to eq ref end it "nested struct in union" do x = Gogyou.struct { @@ -107,11 +109,12 @@ } ref = Gogyou::Model::Union[ 24, 8, Gogyou::Model::Field[0, :a, nil, x], - Gogyou::Model::Field[0, :b, nil, x]] + Gogyou::Model::Field[0, :b, nil, x] + ] expect(y::MODEL).to eq ref end end describe Gogyou::Accessor do @@ -249,9 +252,10 @@ expect(type1.bytesize).to eq 6 expect(type1.bytealign).to eq 2 expect(type1.extensible?).to eq false expect(type1.new.bytesize).to eq 6 + # error: directly under packed in packed expect { Gogyou.struct { packed(1) { packed(2) { struct {