Skip to content

Commit 22764ec

Browse files
committed
useless-assert: support bool ops
1 parent ee2bbf8 commit 22764ec

File tree

4 files changed

+115
-54
lines changed

4 files changed

+115
-54
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,8 @@ Currently the checker guards against assertion of the same variable:
584584
❌ assert.Equal(t, tt.value, tt.value)
585585
assert.ElementsMatch(t, users, users)
586586
// And so on...
587+
assert.True(t, num > num)
588+
assert.False(t, num == num)
587589
```
588590

589591
More complex cases are [open for contribution](CONTRIBUTING.md#useless-assert).

0 commit comments

Comments
 (0)