diff options
author | John Hodge <tpg@ucc.asn.au> | 2017-04-16 11:41:05 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2017-04-16 11:41:05 +0800 |
commit | 3a1797867580bc17a63a49bdf340da1a3188c676 (patch) | |
tree | 113c11736adcc7afbeb2f17e24b4109f12ce6327 /src | |
parent | 8ba1fb776a5a61d3e8b7680e37232bd431f6f7f0 (diff) | |
download | mrust-3a1797867580bc17a63a49bdf340da1a3188c676.tar.gz |
Expand/test - Full path as test name
Diffstat (limited to 'src')
-rw-r--r-- | src/expand/test.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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) ); |