add tests

This commit is contained in:
Arthur Ozga 2017-03-16 18:02:34 -07:00
parent 621c044790
commit dee9ced060
3 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,15 @@
/// <reference path='fourslash.ts' />
//// interface I {
//// x: number[];
//// y: Array<number>;
//// z: [number, string, I];
//// }
////
//// class C implements I {[| |]}
verify.rangeAfterCodeFix(`
x: number[];
y: number[];
z: [number, string, I];
`);

View file

@ -0,0 +1,15 @@
/// <reference path='fourslash.ts' />
//// namespace N1 {
//// export interface I1 {
//// x: number;
//// }
//// }
//// interface I1 {
//// f1();
//// }
//// class C1 implements N1.I1 {[| |]}
verify.rangeAfterCodeFix(`
x: number;
`);

View file

@ -0,0 +1,12 @@
/// <reference path='fourslash.ts' />
//// namespace N {
//// export interface I {
//// y: I;
//// }
//// }
//// class C1 implements N.I {[| |]}
verify.rangeAfterCodeFix(`
y: N.I;
`);