summaryrefslogtreecommitdiffhomepage
path: root/test-cpp.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-03-27 17:39:58 +0100
committerRoland Reichwein <mail@reichwein.it>2020-03-27 17:39:58 +0100
commit3057729f132d516dd9ed58c6964a495aa1c11c3d (patch)
tree7eca9a03fd08200868a5ab0c27e33170b9dc917a /test-cpp.cpp
parent5467147d9470ee294ddab938098c3ef172222066 (diff)
Top-down algo recognizes first C*+ program
Diffstat (limited to 'test-cpp.cpp')
-rw-r--r--test-cpp.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test-cpp.cpp b/test-cpp.cpp
index 2a67b38..47a57f5 100644
--- a/test-cpp.cpp
+++ b/test-cpp.cpp
@@ -46,7 +46,9 @@ TEST_F(CppTest, preprocessing_tokenize) {
}
#endif
- auto result = cpp.analysis(tokens);
+ auto nodes = cpp.analysis(tokens);
+
+ ASSERT_EQ(nodes.size(), 44);
}
#endif