mirror of
https://github.com/github/semantic.git
synced 2024-12-25 07:55:12 +03:00
Source spans are zero-indexed.
This commit is contained in:
parent
b7d9ab1875
commit
77ddc0abd8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user