summaryrefslogtreecommitdiffhomepage
path: root/test-cppbnf.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-10-24 16:32:18 +0200
committerRoland Reichwein <mail@reichwein.it>2020-10-24 16:32:18 +0200
commit1011655d2ef76a0c0aa29dbbff091dab139198e3 (patch)
tree63763828f259846f56285691805c187583ecb6bb /test-cppbnf.cpp
parent1349c00b782eca3ea841bfa388301cb6fc908cc7 (diff)
Add FlowGraph
Diffstat (limited to 'test-cppbnf.cpp')
-rw-r--r--test-cppbnf.cpp45
1 files changed, 0 insertions, 45 deletions
diff --git a/test-cppbnf.cpp b/test-cppbnf.cpp
deleted file mode 100644
index e365574..0000000
--- a/test-cppbnf.cpp
+++ /dev/null
@@ -1,45 +0,0 @@
-#include "bnf.h"
-#include "cpp.h"
-#include "cppbnf.h"
-#include "lexer.h"
-#include "grammer.h"
-#include "minicc.h"
-#include "debug.h"
-
-#include <boost/algorithm/string.hpp>
-
-#include "gmock/gmock.h"
-#include "gtest/gtest.h"
-
-#include <algorithm>
-#include <cctype>
-#include <deque>
-#include <map>
-#include <memory>
-#include <string>
-#include <utility>
-#include <vector>
-
-class CppBnfTest: public ::testing::Test
-{
-protected:
- CppBnfTest() {
- //debug = true;
- }
- ~CppBnfTest() {
- }
-};
-
-TEST_F(CppBnfTest, LexicalBnf) {
- auto bnf = SubBNF(CPPBNF::GetCppBNFLex(), "preprocessing-token");
-
- EXPECT_TRUE(CPPBNF::valid(bnf));
- EXPECT_TRUE(CPPBNF::validLex(bnf));
-}
-
-TEST_F(CppBnfTest, GrammarBnf) {
- auto bnf = SubBNF(CPPBNF::GetCppBNFGram(), "translation-unit");
-
- EXPECT_TRUE(CPPBNF::valid(bnf));
-}
-