Index: test/unittests/wasm/module-decoder-unittest.cc |
diff --git a/test/unittests/wasm/module-decoder-unittest.cc b/test/unittests/wasm/module-decoder-unittest.cc |
index 542c3c9d428bec2d4125501b51a5f3f6d69e262f..724d9ccf6d9d7b68dedbfd3e138fe25abf05429c 100644 |
--- a/test/unittests/wasm/module-decoder-unittest.cc |
+++ b/test/unittests/wasm/module-decoder-unittest.cc |
@@ -510,7 +510,8 @@ |
EXPECT_EQ(1, result.val->signatures.size()); |
EXPECT_EQ(1, result.val->functions.size()); |
EXPECT_EQ(1, result.val->function_tables.size()); |
- EXPECT_EQ(1, result.val->function_tables[0].min_size); |
+ EXPECT_EQ(1, result.val->function_tables[0].values.size()); |
+ EXPECT_EQ(-1, result.val->function_tables[0].values[0]); |
} |
if (result.val) delete result.val; |
} |
@@ -536,7 +537,8 @@ |
EXPECT_EQ(1, result.val->signatures.size()); |
EXPECT_EQ(1, result.val->functions.size()); |
EXPECT_EQ(1, result.val->function_tables.size()); |
- EXPECT_EQ(1, result.val->function_tables[0].min_size); |
+ EXPECT_EQ(1, result.val->function_tables[0].values.size()); |
+ EXPECT_EQ(0, result.val->function_tables[0].values[0]); |
} |
if (result.val) delete result.val; |
} |
@@ -573,7 +575,10 @@ |
EXPECT_EQ(2, result.val->signatures.size()); |
EXPECT_EQ(4, result.val->functions.size()); |
EXPECT_EQ(1, result.val->function_tables.size()); |
- EXPECT_EQ(8, result.val->function_tables[0].min_size); |
+ EXPECT_EQ(8, result.val->function_tables[0].values.size()); |
+ for (int i = 0; i < 8; i++) { |
+ EXPECT_EQ(i & 3, result.val->function_tables[0].values[i]); |
+ } |
} |
if (result.val) delete result.val; |
} |