From 3a1797867580bc17a63a49bdf340da1a3188c676 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 16 Apr 2017 11:41:05 +0800 Subject: Expand/test - Full path as test name --- src/expand/test.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/expand/test.cpp b/src/expand/test.cpp index 707d0795..01e566ff 100644 --- a/src/expand/test.cpp +++ b/src/expand/test.cpp @@ -22,7 +22,11 @@ class CTestHandler: if( crate.m_test_harness ) { ::AST::TestDesc td; - td.name = path.nodes().back().name(); + for(const auto& node : path.nodes()) + { + td.name += "::"; + td.name += node.name(); + } td.path = ::AST::Path(path); crate.m_tests.push_back( mv$(td) ); -- cgit v1.2.3