mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-11 22:43:40 +00:00
reflect: fix typo in unit test
This commit is contained in:
@@ -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())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user