Skip to content

Commit

Permalink
fixup! Assets: Fix False positives with IsValid
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Nov 24, 2024
1 parent 55d5ba8 commit 8bf8783
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions exchanges/asset/asset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ import (

func TestString(t *testing.T) {
t.Parallel()
for a := Item(1); a <= All; a <<= 1 {
assert.NotEmptyf(t, a.String(), "%s.String should return non-empty", a)
for a := range All {
if a == 0 {
assert.Empty(t, a.String(), "Empty.String should return empty")
} else {
assert.NotEmptyf(t, a.String(), "%s.String should return empty", a)
}
}
assert.Empty(t, Empty.String(), "Empty.String should return empty")
}

func TestStrings(t *testing.T) {
Expand Down

0 comments on commit 8bf8783

Please sign in to comment.