// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual completionListAtInvalidLocations"

package fourslash_test

import (
	"testing"

	"github.com/microsoft/typescript-go/internal/fourslash"
	. "github.com/microsoft/typescript-go/internal/fourslash/tests/util"
	"github.com/microsoft/typescript-go/internal/testutil"
)

func TestCompletionListAtInvalidLocations(t *testing.T) {
	fourslash.SkipIfFailing(t)
	t.Parallel()
	defer testutil.RecoverAndFail(t, "Panic on fourslash test")
	const content = `var v1 = '';
" /*openString1*/
var v2 = '';
"/*openString2*/
var v3 = '';
" bar./*openString3*/
var v4 = '';
// bar./*inComment1*/
var v6 = '';
// /*inComment2*/
var v7 = '';
/* /*inComment3*/
var v11 = '';
  // /*inComment4*/
var v12 = '';
type htm/*inTypeAlias*/

//  /*inComment5*/
foo;
var v10 = /reg/*inRegExp1*/ex/;`
	f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
	defer done()
	f.VerifyCompletions(t, []string{"openString1", "openString2", "openString3"}, &fourslash.CompletionsExpectedList{
		IsIncomplete: false,
		ItemDefaults: &fourslash.CompletionsExpectedItemDefaults{
			CommitCharacters: &DefaultCommitCharacters,
			EditRange:        Ignored,
		},
		Items: &fourslash.CompletionsExpectedItems{
			Exact: []fourslash.CompletionsExpectedItem{},
		},
	})
	f.VerifyCompletions(t, []string{"inComment1", "inComment2", "inComment3", "inComment4", "inTypeAlias", "inComment5", "inRegExp1"}, nil)
}
