Skip to content

Commit

Permalink
Fix goto definition tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cocreature committed Dec 16, 2019
1 parent 3740847 commit 1d009e9
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions compiler/damlc/tests/src/DA/Test/ShakeIdeClient.hs
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,7 @@ goToDefinitionTests mbScenarioService = Tasty.testGroup "Go to definition tests"
expectGoToDefinition (foo,2,[2..4]) Missing -- " : "
expectGoToDefinition (foo,2,[9]) Missing -- "\n"
expectGoToDefinition (foo,2,[10]) Missing -- (out of range)
expectGoToDefinition (foo,3,[0..2]) (At (foo,3,0)) -- "foo"
expectGoToDefinition (foo,3,[3..5]) Missing -- " = "
expectGoToDefinition (foo,3,[0..5]) (At (foo,3,0)) -- "foo = "
expectGoToDefinition (foo,3,[6..8]) (At (foo,5,0)) -- "bar"
expectGoToDefinition (foo,3,[9]) Missing -- "\n"
expectGoToDefinition (foo,3,[10]) Missing -- (out of range)
Expand Down Expand Up @@ -645,13 +644,11 @@ goToDefinitionTests mbScenarioService = Tasty.testGroup "Go to definition tests"
, "baz = 10"
]
setFilesOfInterest [foo]
expectGoToDefinition (foo,2,[0..2]) (At (foo,2,0))
expectGoToDefinition (foo,2,[3..5]) Missing
expectGoToDefinition (foo,2,[0..5]) (At (foo,2,0))
expectGoToDefinition (foo,2,[6..8]) (At (foo,3,0))
expectGoToDefinition (foo,2,[9]) Missing

expectGoToDefinition (foo,3,[0..2]) (At (foo,3,0))
expectGoToDefinition (foo,3,[3]) Missing
expectGoToDefinition (foo,3,[0..3]) (At (foo,3,0))
expectGoToDefinition (foo,3,[4..6]) (At (foo,4,0))
expectGoToDefinition (foo,3,[7]) Missing

Expand Down

0 comments on commit 1d009e9

Please sign in to comment.