Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/bendbennett/issues-…
Browse files Browse the repository at this point in the history
…243' into bendbennett/issues-243
  • Loading branch information
bendbennett committed Jan 11, 2024
2 parents 0849854 + 9e5cde1 commit 4f283cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion knownvalue/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ package knownvalue
// Check defines an interface that is implemented to determine whether type and value match. Individual
// implementations determine how the match is performed (e.g., exact match, partial match).
type Check interface {
// CheckValue should perform match testing.
// CheckValue should assert the given known value against any expectations. Use the error
// return to signal unexpected values or implementation errors.
CheckValue(value any) error
// String should return a string representation of the type and value.
String() string
Expand Down
2 changes: 1 addition & 1 deletion knownvalue/map_elements.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (v mapElementsExact) CheckValue(other any) error {

// String returns the string representation of the value.
func (v mapElementsExact) String() string {
return strconv.FormatInt(int64(v.num), 10)
return strconv.Itoa(v.num)
}

// MapElementsExact returns a Check for asserting that
Expand Down

0 comments on commit 4f283cf

Please sign in to comment.