Commit 5617028a authored by Ian Lance Taylor's avatar Ian Lance Taylor

Verify that "byte" is an alias for "uint8".

R=r
DELTA=6  (6 added, 0 deleted, 0 changed)
OCL=26836
CL=26841
parent c5c577c1
......@@ -161,6 +161,12 @@ func TestAll(tt *testing.T) { // TODO(r): wrap up better
value := reflect.NewValue(tmp);
assert(reflect.valueToString(value), "123.4");
}
{
var tmp = byte(123);
value := reflect.NewValue(tmp);
assert(reflect.valueToString(value), "123");
assert(reflect.typeToString(value.Type(), false), "uint8");
}
{ var tmp = "abc";
value := reflect.NewValue(tmp);
assert(reflect.valueToString(value), "abc");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment