mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-19 14:16:41 +00:00
Move tests to the namespace of the code under test (#3244)
Rationale: this convention avoids forcing closely-related code to be far apart in the namespace hierarchy, and vice versa. By the same token, it makes the namespace hierarchy more consistent with the directory hierarchy.
This commit is contained in:
1 parent
d6f689ba07
commit
e3d3122f1d
28 files changed
+155
-162
No files matched your search
@@ -12,7 +12,7 @@
|
||||
#include "explorer/base/arena.h"
|
||||
#include "llvm/Support/Casting.h"
|
||||
|
||||
namespace Carbon::Testing {
|
||||
namespace Carbon {
|
||||
namespace {
|
||||
|
||||
using llvm::cast;
|
||||
@@ -129,4 +129,4 @@ TEST_F(PatternTest, BinaryAsTuplePattern) {
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace Carbon::Testing
|
||||
} // namespace Carbon
|
||||
Reference in new issue
Block a user