mirror of
https://github.com/bettercap/bettercap
synced 2025-07-29 19:20:00 -07:00
add test for Dot11Chan2Freq
This commit is contained in:
parent
7e21ec9a97
commit
74c99d5ea1
1 changed files with 9 additions and 0 deletions
|
@ -14,3 +14,12 @@ func TestDot11Freq2Chan(t *testing.T) {
|
||||||
t.Fatalf("expected '%v', got '%v'", exp, got)
|
t.Fatalf("expected '%v', got '%v'", exp, got)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestDot11Chan2Freq(t *testing.T) {
|
||||||
|
exampleChan := 13
|
||||||
|
exp := 2472
|
||||||
|
got := Dot11Chan2Freq(exampleChan)
|
||||||
|
if got != exp {
|
||||||
|
t.Fatalf("expected '%v', got '%v'", exp, got)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue