microsoft/onnxruntime-extensions
Publicmirrored from https://github.com/microsoft/onnxruntime-extensionsAvailable
test/test_utils.cc
18lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | #include "gtest/gtest.h" |
| 5 | #include "test_utils.h" |
| 6 | #include "utils.h" |
| 7 | #include "re2/re2.h" |
| 8 | |
| 9 | |
| 10 | TEST(utils, make_string) { |
| 11 | std::string res = MakeString("a", "b", 0); |
| 12 | EXPECT_EQ(res, "ab0"); |
| 13 | } |
| 14 | |
| 15 | TEST(utils, re2_basic){ |
| 16 | re2::StringPiece piece("1234"); |
| 17 | re2::RE2 reg("[0-9]*"); |
| 18 | } |
| 19 | |