Skip to content

Commit 0ce53f0

Browse files
committed
rename tests
1 parent bc1bb0e commit 0ce53f0

9 files changed

+63
-9
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/// <reference path='fourslash.ts' />
2+
3+
//// abstract class A<T> {
4+
//// abstract f<T>();
5+
//// }
6+
////
7+
//// class C extends A<number> {[|
8+
//// |]}
9+
10+
verify.rangeAfterCodeFix(`f<number>(){
11+
throw new Error('Method not Implemented');
12+
}
13+
`);
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/// <reference path='fourslash.ts' />
2+
3+
//// abstract class A {
4+
//// abstract x: number;
5+
//// abstract y: number;
6+
//// abstract z: number;
7+
//// }
8+
////
9+
//// class C extends A {[| |]
10+
//// constructor(public x: number) { }
11+
//// y: number;
12+
//// }
13+
14+
verify.rangeAfterCodeFix(`
15+
z: number;
16+
`);

tests/cases/fourslash/codeFixUnImplementedClassMissingFunction.ts renamed to tests/cases/fourslash/codeFixUnImplementedClassMissingFunctionVoidInferred.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//// class B implements A {[| |]}
88

99
verify.rangeAfterCodeFix(`
10-
f(){
10+
f(): void{
1111
throw new Error('Method not Implemented');
1212
}
1313
`);

tests/cases/fourslash/codeFixUnImplementedClassMissingPropertyViaHeritage.ts renamed to tests/cases/fourslash/codeFixUnImplementedClassMissingMethodViaHeritage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// <reference path='fourslash.ts' />
22

33
//// class C1 {
4-
//// f1();
4+
//// f1() {}
55
//// }
66
////
77
//// class C2 extends C1 {
@@ -12,7 +12,7 @@
1212
//// |]f2(){}
1313
//// }
1414

15-
verify.rangeAfterCodeFix(`f1(){
15+
verify.rangeAfterCodeFix(`f1(): void{
1616
throw new Error('Method not Implemented');
1717
}
1818
`);

tests/cases/fourslash/codeFixUnImplementedInterface39.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//// class C1 implements N1.I1 {[|
1313
//// |]}
1414

15-
verify.rangeAfterCodeFix(`f1():string{
15+
verify.rangeAfterCodeFix(`f1(): string{
1616
throw new Error('Method not Implemented');
1717
}
1818
`);

tests/cases/fourslash/codeFixUnImplementedInterfaceSomePropertiesPresent.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
//// interface I {
44
//// x: number;
55
//// y: number;
6+
//// z: number;
67
//// }
78
////
8-
//// class C2 implements I {[|
9-
//// x: number;
10-
//// |]}
9+
//// class C implements I {[| |]
10+
//// constructor(public x: number) { }
11+
//// y: number;
12+
//// }
1113

1214
verify.rangeAfterCodeFix(`
13-
y: number;
14-
x: number;
15+
z: number;
1516
`);
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/// <reference path='fourslash.ts' />
2+
3+
//// interface I1 {
4+
//// x: number;
5+
//// }
6+
//// interface I2 {
7+
//// x: string;
8+
//// }
9+
////
10+
//// class C1 implements I1,I2 {[|
11+
//// |]}
12+
13+
verify.fileAfterCodeFix(`
14+
interface I1 {
15+
x: number;
16+
}
17+
interface I2 {
18+
x: string;
19+
}
20+
21+
class C1 implements I1,I2 {
22+
x: number & string;
23+
}
24+
`);

0 commit comments

Comments
 (0)