1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

Fix warnings in mock_runtime_test.cc

This commit is contained in:
Ryan Dahl 2018-07-16 18:04:54 -04:00
parent d78254009e
commit c775d0c176

View file

@ -129,9 +129,9 @@ TEST(MockRuntimeTest, JSSendArrayBufferViewTypes) {
Deno* d = deno_new(nullptr, [](auto _, auto buf) {
count++;
size_t data_offset = buf.data_ptr - buf.alloc_ptr;
EXPECT_EQ(data_offset, 2468);
EXPECT_EQ(buf.data_len, 1000);
EXPECT_EQ(buf.alloc_len, 4321);
EXPECT_EQ(data_offset, 2468u);
EXPECT_EQ(buf.data_len, 1000u);
EXPECT_EQ(buf.alloc_len, 4321u);
EXPECT_EQ(buf.data_ptr[0], count);
});
EXPECT_TRUE(deno_execute(d, "a.js", "JSSendArrayBufferViewTypes()"));
@ -143,7 +143,7 @@ TEST(MockRuntimeTest, JSSendNeutersBuffer) {
static int count = 0;
Deno* d = deno_new(nullptr, [](auto _, auto buf) {
count++;
EXPECT_EQ(buf.data_len, 1);
EXPECT_EQ(buf.data_len, 1u);
EXPECT_EQ(buf.data_ptr[0], 42);
});
EXPECT_TRUE(deno_execute(d, "a.js", "JSSendNeutersBuffer()"));