diff options
Diffstat (limited to 'backend/unittests/Support')
| -rw-r--r-- | backend/unittests/Support/TextDiagnosticTest.cpp | 2 | ||||
| -rw-r--r-- | backend/unittests/Support/YAMLTest.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/backend/unittests/Support/TextDiagnosticTest.cpp b/backend/unittests/Support/TextDiagnosticTest.cpp index cd28027..71d02b2 100644 --- a/backend/unittests/Support/TextDiagnosticTest.cpp +++ b/backend/unittests/Support/TextDiagnosticTest.cpp @@ -34,7 +34,7 @@ int main() { .Range = Range, }; const std::string Formatted = rcc::formatTextDiagnostic(Diagnostic, Source); - if (Formatted != "input.mir:2:3: error[yaml]: invalid scalar\nsecond line\n ^~~~~~") + if (Formatted != "error: input.mir:2:3: invalid scalar\nsecond line\n ^~~~~~") return fail("Text diagnostics must have deterministic source rendering"); if (rcc::getDiagnosticSeverityName(rcc::DiagnosticSeverity::Warning) != "warning") diff --git a/backend/unittests/Support/YAMLTest.cpp b/backend/unittests/Support/YAMLTest.cpp index 445159d..74f7bf2 100644 --- a/backend/unittests/Support/YAMLTest.cpp +++ b/backend/unittests/Support/YAMLTest.cpp @@ -21,6 +21,7 @@ const rcc::yaml::Node *mappingValue(const rcc::yaml::Stream &Stream, const rcc:: int testMIRShape() { const std::string Input = + "...\n" "--- |\n" " define void @f() {\n" " entry:\n" |
