mirror of
https://github.com/pytorch/pytorch.git
synced 2026-11-20 09:04:25 +08:00
gtest-ify JIT tests, through the letter c (#45020)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/45020 See https://github.com/pytorch/pytorch/pull/45018 for context. Test Plan: Imported from OSS Reviewed By: ZolotukhinM Differential Revision: D23802296 Pulled By: suo fbshipit-source-id: 20c9798a414e9ba30869a862012cbdee0613c8b1
This commit is contained in:
committed by
Facebook GitHub Bot
parent
3f89b779c4
commit
d2b045030e
@@ -1,3 +1,5 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include <test/cpp/jit/test_base.h>
|
||||
#include <torch/csrc/jit/frontend/parser.h>
|
||||
#include <torch/csrc/jit/frontend/resolver.h>
|
||||
@@ -15,7 +17,7 @@ const auto testSource = R"JIT(
|
||||
an_attribute : Tensor
|
||||
)JIT";
|
||||
|
||||
void testClassParser() {
|
||||
TEST(ClassParserTest, Basic) {
|
||||
Parser p(std::make_shared<Source>(testSource));
|
||||
std::vector<Def> definitions;
|
||||
std::vector<Resolver> resolvers;
|
||||
|
||||
Reference in New Issue
Block a user