1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 16:02:43 +03:00

Source spans are zero-indexed.

This commit is contained in:
Rob Rix 2016-09-13 12:23:05 -04:00
parent b7d9ab1875
commit 77ddc0abd8

View File

@ -22,4 +22,4 @@ spec = parallel $ do
it "_" $
let source = fromList "a\nb" in
sourceSpanToRange source (SourceSpan "" (SourcePos 1 1) (SourcePos 2 2)) `shouldBe` totalRange source
sourceSpanToRange source (SourceSpan "" (SourcePos 0 0) (SourcePos 1 1)) `shouldBe` totalRange source