Skip to content
This repository has been archived by the owner on Mar 13, 2019. It is now read-only.

Commit

Permalink
Add test case for a pointer interface
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenroose committed Dec 16, 2016
1 parent 6c846cf commit d1f64f0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions asn1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -676,3 +676,16 @@ func TestArraySlice(t *testing.T) {
ctx := NewContext()
testEncodeDecode(t, ctx, "", testCases...)
}

func TestPointerInterface(t *testing.T) {
type I interface {}
type Type struct {
A int
B string
C bool
}
var obj I
obj = &Type{1, "abc", true}
ctx := NewContext()
testSimple(t, ctx, "", obj)
}

0 comments on commit d1f64f0

Please sign in to comment.