fix startswith endswith and unittest

Change-Id: I3e1c6fd82812d13b4e23ecd6b23c4d57170852e1
This commit is contained in:
buyuxiang
2022-02-15 17:05:39 +08:00
parent 3f5c6f7f5d
commit e6467dfc28
16 changed files with 23 additions and 96 deletions

View File

@@ -25,8 +25,8 @@ var Assertions = map[string]func(t assert.TestingT, actual interface{}, expected
"contains": assert.Contains,
"type_match": assert.IsType,
// custom assertions
"starts_with": StartsWith,
"ends_with": EndsWith,
"startswith": StartsWith,
"endswith": EndsWith,
"len_eq": EqualLength,
"length_equals": EqualLength,
"length_equal": EqualLength,