test/src/runtime/wasm_memory_test.cpp
TEST_F(MemoryHeapTest, ResetTest) {
  const size_t N = 42;
  ASSERT_EQ(memory_.allocate(N), 1);
  memory_.reset();
  ASSERT_EQ(memory_.allocate(N), 1);
}
/**
 * @given Some memory is allocated
 * @when Memory is reset
 * @then Allocated memory's offset is 1
 */
@given Some memory is allocated
@when Memory is reset
@then Allocated memory's offset is 1
@given Some memory is allocated @when Memory is reset @then Allocated memory ' s offset is 1
TEST_F(MemoryHeapTest, ResetTest) {
  const size_t N = 42;
  ASSERT_EQ(memory_.allocate(N), 1);
  memory_.reset();
  ASSERT_EQ(memory_.allocate(N), 1);
}
TEST_F ( MemoryHeapTest , ResetTest ) { const size_t N = 42 ; ASSERT_EQ ( memory_ . allocate ( N ) , 1 ) ; memory_ . reset ( ) ; ASSERT_EQ ( memory_ . allocate ( N ) , 1 ) ; }
@given Some memory is allocated
 @when Memory is reset
 @then Allocated memory's offset is 1
@given Some memory is allocated @when Memory is reset @then Allocated memory ' s offset is 1