Skip to content

Commit

Permalink
[Test] Update test to use locally defined types instead of those from…
Browse files Browse the repository at this point in the history
… stdlib.

Swift SVN r30803
  • Loading branch information
nkcsgexi committed Jul 30, 2015
1 parent 4cb3441 commit 33611bf
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions test/IDE/complete_constructor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=INIT_FROM_METATYPE1 | FileCheck %s -check-prefix=INIT_FROM_METATYPE1
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=INIT_FROM_METATYPE2 | FileCheck %s -check-prefix=INIT_FROM_METATYPE2
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=INIT_FROM_METATYPE3 | FileCheck %s -check-prefix=INIT_FROM_METATYPE3
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=INIT_FROM_METATYPE4 | FileCheck %s -check-prefix=INIT_FROM_METATYPE4

func freeFunc() {}

Expand Down Expand Up @@ -176,21 +175,15 @@ func testGetInitFromMetatype1() {
// INIT_FROM_METATYPE1-NEXT: End completions

func testGetInitFromMetatype2() {
String.#^INIT_FROM_METATYPE2^#
var SS = ExplicitConstructorsBase1.self
SS.#^INIT_FROM_METATYPE2^#
}

// INIT_FROM_METATYPE2: Decl[Constructor]/CurrNominal: init({#(c): Character#})[#String#]{{; name=.+$}}
// INIT_FROM_METATYPE2: Decl[Constructor]/CurrNominal: init()[#ExplicitConstructorsBase1#]{{; name=.+$}}

func testGetInitFromMetatype3() {
var SS = String.self
SS.#^INIT_FROM_METATYPE3^#
var SS = ExplicitConstructorsBase1.self
SS.dynamicType.#^INIT_FROM_METATYPE3^#
}

// INIT_FROM_METATYPE3: Decl[Constructor]/CurrNominal: init({#(c): Character#})[#String#]{{; name=.+$}}

func testGetInitFromMetatype4() {
var SS = String.self
SS.dynamicType.#^INIT_FROM_METATYPE4^#
}

// INIT_FROM_METATYPE4: Decl[Constructor]/CurrNominal: init({#(c): Character#})[#String#]{{; name=.+$}}
// INIT_FROM_METATYPE3: Decl[Constructor]/CurrNominal: init()[#ExplicitConstructorsBase1#]{{; name=.+$}}

0 comments on commit 33611bf

Please sign in to comment.