| 7 | #include <stdio.h> |
| 8 | |
| 9 | void assert_str(std::string_view const& str, const char* expected) { |
| 10 | size_t expected_len = strlen(expected); |
| 11 | assert(str.size() == expected_len); |
| 12 | assert(memcmp(str.data(), expected, expected_len) == 0); |
| 13 | } |
| 14 | |
| 15 | // new API: Identical for guest import and export |
| 16 | void exports::test::strings::to_test::TakeBasic(std::string_view str) { |