mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-13 17:07:21 +00:00
Added an analyzer which keeps line breaks LF on every system (#1193)
This commit is contained in:
1 parent
b1c1f13993
commit
65d50de033
96 files changed
+741
-393
No files matched your search
@@ -58,7 +58,7 @@ public sealed class CapabilityCharacterizationTests
|
||||
}
|
||||
|
||||
File.WriteAllText(CapabilitySnapshot.ACTUAL_FILE_PATH, current);
|
||||
Assert.Fail($"The capabilities of {DescribeDifference(recorded, current)}{Environment.NewLine}{Environment.NewLine}The full result was written to {CapabilitySnapshot.ACTUAL_FILE_PATH}.");
|
||||
Assert.Fail($"The capabilities of {DescribeDifference(recorded, current)}\n\nThe full result was written to {CapabilitySnapshot.ACTUAL_FILE_PATH}.");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -76,19 +76,19 @@ public sealed class CapabilityCharacterizationTests
|
||||
var added = currentLines.Keys.Except(recordedLines.Keys).ToList();
|
||||
var removed = recordedLines.Keys.Except(currentLines.Keys).ToList();
|
||||
|
||||
var message = new StringBuilder($"{changed.Count} model(s) changed, {added.Count} came into the corpus, {removed.Count} left it:").Append(Environment.NewLine);
|
||||
var message = new StringBuilder($"{changed.Count} model(s) changed, {added.Count} came into the corpus, {removed.Count} left it:").Append('\n');
|
||||
foreach (var model in changed.Take(LINES_SHOWN))
|
||||
{
|
||||
message.Append(Environment.NewLine).Append(" ").Append(model);
|
||||
message.Append(Environment.NewLine).Append(" was: ").Append(recordedLines[model]);
|
||||
message.Append(Environment.NewLine).Append(" now: ").Append(currentLines[model]);
|
||||
message.Append('\n').Append(" ").Append(model);
|
||||
message.Append('\n').Append(" was: ").Append(recordedLines[model]);
|
||||
message.Append('\n').Append(" now: ").Append(currentLines[model]);
|
||||
}
|
||||
|
||||
foreach (var model in added.Take(LINES_SHOWN))
|
||||
message.Append(Environment.NewLine).Append(" + ").Append(model).Append(": ").Append(currentLines[model]);
|
||||
message.Append('\n').Append(" + ").Append(model).Append(": ").Append(currentLines[model]);
|
||||
|
||||
foreach (var model in removed.Take(LINES_SHOWN))
|
||||
message.Append(Environment.NewLine).Append(" - ").Append(model).Append(": ").Append(recordedLines[model]);
|
||||
message.Append('\n').Append(" - ").Append(model).Append(": ").Append(recordedLines[model]);
|
||||
|
||||
return message.ToString();
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ public static class CompilationHarness
|
||||
.Where(diagnostic => diagnostic.Severity is DiagnosticSeverity.Error)
|
||||
.Select(diagnostic => diagnostic.ToString());
|
||||
|
||||
return string.Join(Environment.NewLine, errors);
|
||||
return string.Join('\n', errors);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in new issue
Block a user