message: Add instantiation test for data sections
diff: @@ -66,6 +66,22 @@ TEST(instantiate, memory_multiple)
  EXPECT_THROW(instantiate(module), std::runtime_error);
  }
  +TEST(instantiate, data_section)
  +{
  + Module module;
  + module.memorysec.emplace_back(Memory{{1, 1}});
  + // Memory contents: 0, 0xaa, 0xff, 0, ...
  + module.datasec.emplace_back(
  + Data{MemIdx{0}, {ConstantExpression::Kind::Constant, {1}}, {0xaa, 0xff}});
  + // Memory contents: 0, 0xaa, 0x55, 0x55, 0, ...
  + module.datasec.emplace_back(
  + Data{MemIdx{0}, {ConstantExpression::Kind::Constant, {2}}, {0x55, 0x55}});
  +
  + auto instance = instantiate(module);
  +
  + EXPECT_EQ(instance.memory.substr(0, 6), from_hex("00aa55550000"));
  +}
  +
  TEST(instantiate, globals_single)
  {
  Module module;
  