Skip to content

Commit ecd1852

Browse files
committed
Add test
1 parent 251d196 commit ecd1852

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

math/number/parse_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ func ExampleParseFloat() {
1818
// 0.625 <nil>
1919
}
2020

21+
func ExampleMustParseInt() {
22+
fmt.Println(number.MustParseInt("101"))
23+
24+
// Output:
25+
// 5
26+
}
27+
2128
func TestParseFloat(t *testing.T) {
2229
cases := []struct {
2330
in string

0 commit comments

Comments
 (0)