microsoft/onnxruntime-extensions

Public

mirrored from https://github.com/microsoft/onnxruntime-extensionsAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
e8dcc41497ab56e4a60f2ceff5a552e2c91e2d49

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

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
10TEST(utils, make_string) {
11 std::string res = MakeString("a", "b", 0);
12 EXPECT_EQ(res, "ab0");
13}
14
15TEST(utils, re2_basic){
16 re2::StringPiece piece("1234");
17 re2::RE2 reg("[0-9]*");
18}
19