From 694a0a7dfb09ec79a5b3fbce71f59b5713b0a95b Mon Sep 17 00:00:00 2001 From: Jon Meow Date: Mon, 21 Mar 2022 11:55:08 -0700 Subject: [PATCH] Clean up renamed test (#1145) --- toolchain/semantics/semantics_test.cpp | 41 -------------------------- 1 file changed, 41 deletions(-) delete mode 100644 toolchain/semantics/semantics_test.cpp diff --git a/toolchain/semantics/semantics_test.cpp b/toolchain/semantics/semantics_test.cpp deleted file mode 100644 index 8e1f89cb514f..000000000000 --- a/toolchain/semantics/semantics_test.cpp +++ /dev/null @@ -1,41 +0,0 @@ -// Part of the Carbon Language project, under the Apache License v2.0 with LLVM -// Exceptions. See /LICENSE for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -#include "toolchain/semantics/semantics.h" - -#include -#include - -#include "llvm/ADT/Optional.h" -#include "toolchain/diagnostics/diagnostic_emitter.h" -#include "toolchain/lexer/tokenized_buffer.h" -#include "toolchain/parser/parse_tree.h" -#include "toolchain/source/source_buffer.h" - -namespace Carbon::Testing { -namespace { - -class ParseTreeTest : public ::testing::Test { - protected: - auto Analyze(llvm::Twine t) -> Semantics { - source_buffer.emplace(std::move(*SourceBuffer::CreateFromText(t.str()))); - tokenized_buffer = TokenizedBuffer::Lex(*source_buffer, consumer); - parse_tree = ParseTree::Parse(*tokenized_buffer, consumer); - return Semantics::Analyze(*parse_tree, consumer); - } - - llvm::Optional source_buffer; - llvm::Optional tokenized_buffer; - llvm::Optional parse_tree; - DiagnosticConsumer& consumer = ConsoleDiagnosticConsumer(); -}; - -TEST_F(ParseTreeTest, Empty) { - // TODO: Validate the returned Semantics object. - Analyze(""); - ASSERT_FALSE(parse_tree->has_errors()); -} - -} // namespace -} // namespace Carbon::Testing