microsoft/onnxruntime-extensions

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
b3a300d7bf6f3e99fb907e682f7246ed5ed5805e

Branches

Tags

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

Clone

HTTPS

Download ZIP

test/static_test/test_utils.cc

24lines · 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
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
20TEST(utils, json) {
21 nlohmann::json j;
22 j.push_back("foo");
23 EXPECT_EQ(j.size(), 1);
24}
25