Skip to content
Snippets Groups Projects
Commit c3e245ca authored by Christoph Petrausch's avatar Christoph Petrausch
Browse files

Fixed typos

parent 1b6d5072
No related branches found
No related tags found
No related merge requests found
...@@ -58,19 +58,19 @@ func TestParseLargeCommunityString(t *testing.T) { ...@@ -58,19 +58,19 @@ func TestParseLargeCommunityString(t *testing.T) {
err: errors.New("malformed large community string (,2,3)"), err: errors.New("malformed large community string (,2,3)"),
}, },
{ {
name: "to big global administrator", name: "too big global administrator",
in: fmt.Sprintf("(%d,1,2)", math.MaxInt64), in: fmt.Sprintf("(%d,1,2)", math.MaxInt64),
expected: LargeCommunity{}, expected: LargeCommunity{},
err: &strconv.NumError{Func: "ParseUint", Num: fmt.Sprintf("%d", math.MaxInt64), Err: strconv.ErrRange}, err: &strconv.NumError{Func: "ParseUint", Num: fmt.Sprintf("%d", math.MaxInt64), Err: strconv.ErrRange},
}, },
{ {
name: "to big data part 1", name: "too big data part 1",
in: fmt.Sprintf("(1,%d,2)", math.MaxInt64), in: fmt.Sprintf("(1,%d,2)", math.MaxInt64),
expected: LargeCommunity{1, 0, 0}, expected: LargeCommunity{1, 0, 0},
err: &strconv.NumError{Func: "ParseUint", Num: fmt.Sprintf("%d", math.MaxInt64), Err: strconv.ErrRange}, err: &strconv.NumError{Func: "ParseUint", Num: fmt.Sprintf("%d", math.MaxInt64), Err: strconv.ErrRange},
}, },
{ {
name: "to big data part 2", name: "too big data part 2",
in: fmt.Sprintf("(1,2,%d)", math.MaxInt64), in: fmt.Sprintf("(1,2,%d)", math.MaxInt64),
expected: LargeCommunity{1, 2, 0}, expected: LargeCommunity{1, 2, 0},
err: &strconv.NumError{Func: "ParseUint", Num: fmt.Sprintf("%d", math.MaxInt64), Err: strconv.ErrRange}, err: &strconv.NumError{Func: "ParseUint", Num: fmt.Sprintf("%d", math.MaxInt64), Err: strconv.ErrRange},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment