Skip to content

Commit

Permalink
fixing typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Mzack9999 committed Feb 12, 2023
1 parent aeb7bbb commit c27309c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions strings/stringsutil_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,14 +289,14 @@ func TestLongestRepeatingSequence(t *testing.T) {
}
}

type truncaTeest struct {
type truncateTest struct {
test string
maxSize int
result string
}

func TestTruncate(t *testing.T) {
tests := []truncaTeest{
tests := []truncateTest{
{test: "abcd", maxSize: -1, result: "abcd"},
{test: "abcd", maxSize: 0, result: ""},
{test: "abcde", maxSize: 3, result: "abc"},
Expand Down

0 comments on commit c27309c

Please sign in to comment.