| 154 | } |
| 155 | |
| 156 | void ExampleString() { |
| 157 | namespace ffi = tvm::ffi; |
| 158 | ffi::String str = "hello world"; |
| 159 | EXPECT_EQ(str.size(), 11); |
| 160 | std::string std_str = str; |
| 161 | EXPECT_EQ(std_str, "hello world"); |
| 162 | } |
| 163 | |
| 164 | TEST(Example, String) { ExampleString(); } |
| 165 |