Skip to content

Commit

Permalink
Merge pull request #16 from alpacahq/fix/recursive-stringer
Browse files Browse the repository at this point in the history
Fix recursive String() implementation
  • Loading branch information
kalmant authored May 12, 2023
2 parents 099e271 + ca9a89b commit 397985c
Show file tree
Hide file tree
Showing 3 changed files with 394 additions and 385 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ lint:
golint .

test:
go test -v -cover . ./datadictionary ./internal
go test -v -cover . ./datadictionary ./internal ./enum

_build_all:
go build -v `go list ./...`
Expand Down
9 changes: 9 additions & 0 deletions enum/enum_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package enum

import "testing"

func TestString(t *testing.T) {
// Regression test: this should not cause a stack overflow.
p := Product("05")
t.Log(p.String())
}
Loading

0 comments on commit 397985c

Please sign in to comment.