microsoft/onnxruntime-extensions

Public

mirrored fromhttps://github.com/microsoft/onnxruntime-extensionsAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
4a0f8929494fa301baa6c59f617cce7872a7c4c8

Branches

Tags

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

Clone

HTTPS

Download ZIP

test/test_utils.cc

25lines · 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#include "nlohmann/json.hpp"
9
10
11TEST(utils, make_string) {
12 std::string res = MakeString("a", "b", 0);
13 EXPECT_EQ(res, "ab0");
14}
15
16TEST(utils, re2_basic){
17 re2::StringPiece piece("1234");
18 re2::RE2 reg("[0-9]*");
19}
20
21TEST(utils, json){
22 nlohmann::json j;
23 j.push_back("foo");
24 EXPECT_EQ(j.size(), 1);
25}
26