Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nix-community/nixd
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9cb2c4271f810f4b8f2b58a3adc262579f8d0561
Choose a base ref
..
head repository: nix-community/nixd
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9848506d5982f709dc5ceec01ee283479bff5242
Choose a head ref
Showing with 3 additions and 1 deletion.
  1. +3 −1 libnixf/test/Parse/Parser.cpp
4 changes: 3 additions & 1 deletion libnixf/test/Parse/Parser.cpp
Original file line number Diff line number Diff line change
@@ -350,7 +350,9 @@ TEST(Parser, ParenExprMissingRParen) {

// Check fix-it hints.
ASSERT_EQ(D.fixes().size(), 1);
const auto &F = D.fixes()[0];
ASSERT_EQ(D.fixes()[0].edits().size(), 1);
ASSERT_EQ(D.fixes()[0].message(), "insert )");
const auto &F = D.fixes()[0].edits()[0];
ASSERT_TRUE(F.oldRange().begin().isAt(0, 2, 2));
ASSERT_TRUE(F.oldRange().end().isAt(0, 2, 2));
ASSERT_EQ(F.newText(), ")");