未验证 提交 e8f4968d 编写于 作者: J Jason Simmons 提交者: GitHub

Update iOS unit test for the removal of hex string encoding of uint64 data (#7246)

上级 ba117366
......@@ -66,12 +66,12 @@ TEST(FlutterStandardCodec, CanEncodeAndDecodeUInt32) {
checkEncodeDecode(@(value), [NSData dataWithBytes:bytes length:9]);
}
TEST(FlutterStandardCodec, CanEncodeAndDecodeUInt64AsHexString) {
TEST(FlutterStandardCodec, CanEncodeUInt64) {
FlutterStandardMessageCodec* codec = [FlutterStandardMessageCodec sharedInstance];
UInt64 u64 = 0xfffffffffffffffa;
uint8_t bytes[9] = {0x04, 0xfa, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
NSData* encoded = [codec encode:@(u64)];
NSString* decoded = [codec decode:encoded];
ASSERT_TRUE([decoded isEqual:@"fffffffffffffffa"]);
ASSERT_TRUE([encoded isEqual:[NSData dataWithBytes:bytes length:9]]);
}
TEST(FlutterStandardCodec, CanEncodeAndDecodeSInt8) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册