reflect: fix typo in unit test
Этот коммит содержится в:
родитель
6cb7f29d9b
коммит
3aa8c8e0d1
1 изменённых файлов: 1 добавлений и 1 удалений
|
@ -162,7 +162,7 @@ func TestTinyMap(t *testing.T) {
|
||||||
|
|
||||||
utKeys := refut.MapKeys()
|
utKeys := refut.MapKeys()
|
||||||
|
|
||||||
// make sure keys extracted via reflection have the correct ype
|
// make sure keys extracted via reflection have the correct type
|
||||||
if _, ok := utKeys[0].Interface().(unmarshalerText); !ok {
|
if _, ok := utKeys[0].Interface().(unmarshalerText); !ok {
|
||||||
t.Errorf("Map keys via MapKeys() have wrong type: %v", utKeys[0].Type().String())
|
t.Errorf("Map keys via MapKeys() have wrong type: %v", utKeys[0].Type().String())
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче