mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 08:51:05 +01: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:
@@ -10,7 +10,7 @@
|
||||
#include "llvm/Support/VirtualFileSystem.h"
|
||||
#include "toolchain/diagnostics/diagnostic_emitter.h"
|
||||
|
||||
namespace Carbon::Testing {
|
||||
namespace Carbon {
|
||||
namespace {
|
||||
|
||||
static constexpr llvm::StringLiteral TestFileName = "test.carbon";
|
||||
@@ -66,4 +66,4 @@ TEST(SourceBufferTest, EmptyFile) {
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace Carbon::Testing
|
||||
} // namespace Carbon
|
||||
|
||||
Reference in New Issue
Block a user