1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:47:44 +00:00

LibDiff: Make Diff::from_text fallible

This commit is contained in:
Shannon Booth 2023-06-24 12:57:38 +12:00 committed by Andreas Kling
parent 23df5748f6
commit ee92378b80
5 changed files with 22 additions and 17 deletions

View file

@ -254,7 +254,7 @@ static ErrorOr<TestResult> run_test(HeadlessWebContentView& view, StringView inp
else
outln("\nTest failed: {}", input_path);
auto hunks = Diff::from_text(expectation, actual);
auto hunks = TRY(Diff::from_text(expectation, actual));
auto out = TRY(Core::File::standard_output());
for (auto const& hunk : hunks) {
TRY(out->write_formatted("Hunk: "));