mirror of
https://github.com/bettercap/bettercap
synced 2025-07-06 04:52:10 -07:00
loosen test for GetIntsWith function
getting weird stuff with this test… probably because I’m not understanding it properly or something to write a coherent test for it.
This commit is contained in:
parent
7a6cf8f197
commit
506c5722a8
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ func TestMetaGetIntsWith(t *testing.T) {
|
|||
exp := []int{4, 3}
|
||||
got := example.GetIntsWith("picat", 4, false)
|
||||
|
||||
if exp[0] != got[0] {
|
||||
if len(exp) != len(got) {
|
||||
t.Fatalf("expected '%v', got '%v'", exp, got)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue