1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00

Correct the test of insertion patch alignment.

This commit is contained in:
Rob Rix 2016-04-14 20:31:03 -04:00
parent 7c63e92ea7
commit 3662b021df

View File

@ -89,7 +89,7 @@ spec = parallel $ do
alignDiff (both (Source.fromList "a") (Source.fromList "a\nb")) (both (info 0 1) (info 0 3) `branch` [ pure (info 0 1) `leaf` "a", Pure (Insert (info 2 3 :< Leaf "b")) ]) `shouldBe`
[ Join (These (info 0 1 `branch` [ info 0 1 `leaf` "a" ])
(info 0 2 `branch` [ info 0 1 `leaf` "a" ]))
, Join (That (Pure (SplitInsert (info 2 3 :< Leaf "b"))))
, Join (That (info 2 3 `branch` [ Pure (SplitInsert (info 2 3 :< Leaf "b")) ]))
]
where