Files
swift-mirror/test/IDE/complete_at_start_1.swift
Ben Langmuir 5f2bcba8ba Update tests for code-completion modulename change
Add module name to OtherModule result output and update the tests
accordingly.

Swift SVN r26262
2015-03-18 16:40:28 +00:00

19 lines
865 B
Swift

#^A^#
// Make sure we can code complete at the beginning of the file.
// rdar://14585108
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=A | FileCheck %s -check-prefix=A
// A: Begin completions
// A-DAG: Keyword/None: true[#Bool#]{{; name=.+$}}
// A-DAG: Keyword/None: false[#Bool#]{{; name=.+$}}
// A-DAG: Keyword/None: nil{{; name=.+$}}
// A-DAG: Decl[Struct]/OtherModule[Swift]: Int8[#Int8#]{{; name=.+$}}
// A-DAG: Decl[Struct]/OtherModule[Swift]: Int16[#Int16#]{{; name=.+$}}
// A-DAG: Decl[Struct]/OtherModule[Swift]: Int32[#Int32#]{{; name=.+$}}
// A-DAG: Decl[Struct]/OtherModule[Swift]: Int64[#Int64#]{{; name=.+$}}
// A-DAG: Decl[Struct]/OtherModule[Swift]: Bool[#Bool#]{{; name=.+$}}
// A: End completions
// This function just adds more non-comment tokens to ensure that the file is not empty.
func foo() {}