25 lines
536 B
Go
25 lines
536 B
Go
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash"
|
|
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/testutil"
|
|
)
|
|
|
|
func TestIncrementalParsingInsertIntoMethod1(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `class C {
|
|
public foo1() { }
|
|
public foo2() {
|
|
return 1/*1*/;
|
|
}
|
|
public foo3() { }
|
|
}`
|
|
f := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
f.GoToMarker(t, "1")
|
|
f.Insert(t, " + 1")
|
|
}
|