Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarfgp committed Dec 26, 2024
1 parent 4bb43bd commit aa92446
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion test/FsAutoComplete.Tests.Lsp/CodeFixTests/AddMissingSeqTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,35 @@ let tests state =
serverTestList (nameof AddMissingSeq) state defaultConfigDto None (fun server ->
[ let selectCodeFix = CodeFix.withTitle AddMissingSeq.title

ftestCaseAsync "first unit test for AddMissingSeq"
testCaseAsync "FS3873 — Adds missing seq before { start..finish } top level"
<| CodeFix.check
server
"$0{ 1..10 }"
Diagnostics.acceptAll
selectCodeFix
"seq { 1..10 }"

testCaseAsync "FS3873 — Adds missing seq before { start..finish } binding"
<| CodeFix.check
server
"let xs = $0{ 1;10 }"
Diagnostics.acceptAll
selectCodeFix
"let xs = seq { 1;10 }"

testCaseAsync "FS0740 — Adds missing seq before { x; y } top level"
<| CodeFix.check
server
"$0{ 1;10 }"
Diagnostics.acceptAll
selectCodeFix
"seq { 1;10 }"

testCaseAsync "FS0740 — Adds missing seq before { x; y } binding"
<| CodeFix.check
server
"let xs = $0{ 1;10 }"
Diagnostics.acceptAll
selectCodeFix
"let xs = seq { 1;10 }"
])

0 comments on commit aa92446

Please sign in to comment.