2021-11-19 01:07:30 +00:00
|
|
|
package glider_ssh
|
2016-12-18 08:50:44 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestKeysEqual(t *testing.T) {
|
|
|
|
defer func() {
|
|
|
|
if r := recover(); r != nil {
|
|
|
|
t.Errorf("The code did panic")
|
|
|
|
}
|
|
|
|
}()
|
|
|
|
|
2016-12-18 17:47:50 +00:00
|
|
|
if KeysEqual(nil, nil) {
|
2016-12-18 08:50:44 +00:00
|
|
|
t.Error("two nil keys should not return true")
|
|
|
|
}
|
|
|
|
}
|