Skip to content

Commit

Permalink
Release v0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzuochao committed Feb 11, 2020
1 parent 28481cc commit 76362ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions golang/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
2020-02-11 Version: v0.0.1
- Tea Util for Go SDK.
2 changes: 1 addition & 1 deletion golang/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func Empty(val string) bool {
return val == ""
}

func Equal(val1, val2 string) bool {
func EqualString(val1, val2 string) bool {
return val1 == val2
}

Expand Down
6 changes: 3 additions & 3 deletions golang/service/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ func Test_Empty(t *testing.T) {
utils.AssertEqual(t, false, ok)
}

func Test_Equal(t *testing.T) {
ok := Equal("v1", "v1")
func Test_EqualString(t *testing.T) {
ok := EqualString("v1", "v1")
utils.AssertEqual(t, true, ok)

ok = Equal("v1", "v2")
ok = EqualString("v1", "v2")
utils.AssertEqual(t, false, ok)
}

Expand Down

0 comments on commit 76362ff

Please sign in to comment.