aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDamian Gryski <[email protected]>2023-03-22 09:34:31 -0700
committerAyke <[email protected]>2023-03-27 18:53:37 +0200
commitf239e8e2d918322d67c80bf4f44a78d35da18f96 (patch)
tree679fc6a3009ef0b201582bbcc44be5187b629011
parent6b73b5e4860a060e5196080c6485fa6b6c2b8fe5 (diff)
downloadtinygo-f239e8e2d918322d67c80bf4f44a78d35da18f96.tar.gz
tinygo-f239e8e2d918322d67c80bf4f44a78d35da18f96.zip
reflect: typo in uint test
-rw-r--r--src/reflect/value_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reflect/value_test.go b/src/reflect/value_test.go
index e463823ef..64b1cf0ef 100644
--- a/src/reflect/value_test.go
+++ b/src/reflect/value_test.go
@@ -577,14 +577,14 @@ func TestConvert(t *testing.T) {
c := v.Convert(TypeOf(byte(0)))
if c.Type().Kind() != Uint8 || c.Uint() != 3 {
- t.Errorf("Conver(uint64 -> byte failed: kind=%v, value=%d", c.Type().Kind().String(), c.Uint())
+ t.Errorf("Convert(uint64 -> byte failed: kind=%v, value=%d", c.Type().Kind().String(), c.Uint())
}
v = ValueOf("hello")
c = v.Convert(TypeOf([]byte("")))
if c.Type().Kind() != Slice || c.Type().Elem().Kind() != Uint8 && c.Len() != 5 && string(c.Bytes()) != "hello" {
- t.Errorf("Conver(string -> []byte")
+ t.Errorf("Convert(string -> []byte")
}
}