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:
Geoff Romer authored and GitHub committed 2023-09-18 22:05:14 +00:00
1 parent d6f689ba07
commit e3d3122f1d
28 files changed
+155 -162

No files matched your search

+2 -2
View File
@@ -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