// Code generated by convertFourslash; DO NOT EDIT. // To modify this test, run "npm run makemanual completionForStringLiteral16" 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 TestCompletionForStringLiteral16(t *testing.T) { fourslash.SkipIfFailing(t) t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { a: string; b: number; c: string; } declare function f1(key: keyof T): T; declare function f2(a: keyof T, b: keyof T): T; f1("/*1*/",); f1("/*2*/"); f1("/*3*/",,,); f2("/*4*/", "/*5*/",); f2("/*6*/", "/*7*/"); f2("/*8*/", "/*9*/",,,);` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) defer done() f.VerifyCompletions(t, f.Markers(), &fourslash.CompletionsExpectedList{ IsIncomplete: false, ItemDefaults: &fourslash.CompletionsExpectedItemDefaults{ CommitCharacters: &DefaultCommitCharacters, EditRange: Ignored, }, Items: &fourslash.CompletionsExpectedItems{ Exact: []fourslash.CompletionsExpectedItem{ "a", "b", "c", }, }, }) }