| 5 | #include <stdio.h> |
| 6 | |
| 7 | void assert_str(std::string_view const& str, const char* expected) { |
| 8 | size_t expected_len = strlen(expected); |
| 9 | assert(str.size() == expected_len); |
| 10 | assert(memcmp(str.data(), expected, expected_len) == 0); |
| 11 | } |
| 12 | |
| 13 | void exports::test::strings::to_test::TakeBasic(wit::string str) { |
| 14 | assert_str(str.get_view(), "latin utf16"); |