test/src/runtime/wasm_memory_test.cpp
TEST_F(MemoryHeapTest, LoadNTest) {
  const size_t N = 3;

  sgns::base::Buffer b(N, 'c');

  auto ptr = memory_.allocate(N);

  memory_.storeBuffer(ptr, b);

  auto res_b = memory_.loadN(ptr, N);
  ASSERT_EQ(b, res_b);
}
/**
 * @given arbitrary buffer of size N
 * @when this buffer is stored in memory heap @and then load of N bytes is done
 * @then the same buffer is returned
 */
@given arbitrary buffer of size N
@when this buffer is stored in memory heap @and then load of N bytes is done
@then the same buffer is returned
@given arbitrary buffer of size N @when this buffer is stored in memory heap @and then load of N bytes is done @then the same buffer is returned
TEST_F(MemoryHeapTest, LoadNTest) {
  const size_t N = 3;
  sgns::base::Buffer b(N, 'c');
  auto ptr = memory_.allocate(N);
  memory_.storeBuffer(ptr, b);
  auto res_b = memory_.loadN(ptr, N);
  ASSERT_EQ(b, res_b);
}
TEST_F ( MemoryHeapTest , LoadNTest ) { const size_t N = 3 ; sgns :: base :: Buffer b ( N , ' ' ) ; auto ptr = memory_ . allocate ( N ) ; memory_ . storeBuffer ( ptr , b ) ; auto res_b = memory_ . loadN ( ptr , N ) ; ASSERT_EQ ( b , res_b ) ; }
@given arbitrary buffer of size N
 @when this buffer is stored in memory heap @and then load of N bytes is done
 @then the same buffer is returned
@given arbitrary buffer of size N @when this buffer is stored in memory heap @and then load of N bytes is done @then the same buffer is returned