-
Notifications
You must be signed in to change notification settings - Fork 457
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
metamorphic: use require.Equal in TestParserRandom
Previously the TestParserRandom unit test used pretty.Diff, but the output for versions with cyclic references has changed. This commit changes the test to use require.Equal. This requires updating some generated operations to use nil to represent empty slices rather than []T{}. This matches the ops the parser creates, which alway use nil for empty slices.
- Loading branch information
Showing
2 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters