Skip to content

Commit

Permalink
Merge pull request #159 from MarvinJWendt/156-add-fuzzutilremovedupli…
Browse files Browse the repository at this point in the history
…cates
  • Loading branch information
MarvinJWendt committed Apr 10, 2022
2 parents b163885 + c5c9e20 commit 8e73fb5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</a>

<a href="https://codecov.io/gh/MarvinJWendt/testza">
<!-- unittestcount:start --><img src="https://img.shields.io/badge/Unit_Tests-2993-magenta?style=flat-square" alt="Unit test count"><!-- unittestcount:end -->
<!-- unittestcount:start --><img src="https://img.shields.io/badge/Unit_Tests-3004-magenta?style=flat-square" alt="Unit test count"><!-- unittestcount:end -->
</a>

<a href="https://pkg.go.dev/github.com/MarvinJWendt/testza" target="_blank">
Expand Down
5 changes: 5 additions & 0 deletions fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ func TestFuzzUtilLimitSet(t *testing.T) {
}
}

func TestFuzzUtilDistinctSet(t *testing.T) {
AssertEqual(t, FuzzUtilDistinctSet([]string{"A", "B", "B", "A", "C"}), []string{"A", "B", "C"})
AssertEqual(t, FuzzUtilDistinctSet([]int{1, 2, 2, 1, 3}), []int{1, 2, 3})
}

//endregion

//region FuzzString
Expand Down

0 comments on commit 8e73fb5

Please sign in to comment.