Skip to content

Commit

Permalink
test: Assert info window output of inferType
Browse files Browse the repository at this point in the history
  • Loading branch information
phijor committed Jan 29, 2023
1 parent 6e9d5a8 commit 1172b35
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/Hello.agda
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ elaborate = {! 3 !}
sub₀and-super⁹ : Nat
sub₀and-super⁹ = 15

infer : Bool Bool Bool
infer x = {! x !}
8 changes: 8 additions & 0 deletions test/TestSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,11 @@ spec = focus $ do
goto w 43 16
incNextDigitSeq

vimSpec "should infer type of local variable" timeout "test/Hello.agda" $ \w b -> do
withBufferStuff b $ \bs -> do
goto w 46 14
inferType AsIs
liftIO $ threadDelay 5e5
res <- buffer_get_lines (iw_buffer $ bs_info_win bs) vimFirstLine vimLastLine False
liftIO $ V.toList res `shouldContain` ["Inferred Type: Bool"]

0 comments on commit 1172b35

Please sign in to comment.