mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
add test for Dot11Freq2Chan
This commit is contained in:
parent
92395b6170
commit
7e21ec9a97
1 changed files with 9 additions and 0 deletions
|
@ -5,3 +5,12 @@ import "testing"
|
|||
func buildExampleWiFi() *WiFi {
|
||||
return NewWiFi(buildExampleEndpoint(), func(ap *AccessPoint) {}, func(ap *AccessPoint) {})
|
||||
}
|
||||
|
||||
func TestDot11Freq2Chan(t *testing.T) {
|
||||
exampleFreq := 2472
|
||||
exp := 13
|
||||
got := Dot11Freq2Chan(exampleFreq)
|
||||
if got != exp {
|
||||
t.Fatalf("expected '%v', got '%v'", exp, got)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue