1 /*
2  * SPDX-License-Identifier: Apache-2.0
3  */
4 
5 #include <iostream>
6 #include "gtest/gtest.h"
7 #include "onnx/common/constants.h"
8 #include "onnx/defs/schema.h"
9 
10 namespace ONNX_NAMESPACE {
11 namespace Test {
12 
TEST(FunctionAPITest,Get_Function_op_With_Version)13 TEST(FunctionAPITest, Get_Function_op_With_Version) {
14   const auto* schema = OpSchemaRegistry::Schema("MeanVarianceNormalization", 9, "");
15   EXPECT_TRUE(schema);
16   EXPECT_TRUE(schema->HasFunction());
17   auto func = schema->GetFunction();
18   EXPECT_EQ(func->name(), "MeanVarianceNormalization");
19 }
20 
21 } // namespace Test
22 } // namespace ONNX_NAMESPACE
23