Files
swift-mirror/test/IDE/complete_unicode.swift
Dmitri Hrybenko 6ee92ec96d Code completion: add a test with non-ASCII identifiers
rdar://15323124


Swift SVN r9785
2013-10-30 06:15:53 +00:00

28 lines
1.3 KiB
Swift
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// RUN: %swift-ide-test -code-completion -source-filename %s -code-completion-token=UNICODE_1 > %t.unicode.txt
// RUN: FileCheck %s -check-prefix=UNICODE_1 < %t.unicode.txt
struct Unicode1 {
func Идентификаторы_с_кириллицей_допустимы() {}
func Ідентіфікатори_українською_також_працюють() {}
func () {}
func () {}
func () {}
func () {}
func () {}
}
func unicode_test_1() {
Unicode1().#^UNICODE_1^#
}
// UNICODE_1: Begin completions, 8 items
// UNICODE_1-NEXT: Decl/CurrNominal: Идентификаторы_с_кириллицей_допустимы()[#Void#]{{$}}
// UNICODE_1-NEXT: Decl/CurrNominal: Ідентіфікатори_українською_також_працюють()[#Void#]{{$}}
// UNICODE_1-NEXT: Decl/CurrNominal: ()[#Void#]{{$}}
// UNICODE_1-NEXT: Decl/CurrNominal: ()[#Void#]{{$}}
// UNICODE_1-NEXT: Decl/CurrNominal: ()[#Void#]{{$}}
// UNICODE_1-NEXT: Decl/CurrNominal: ()[#Void#]{{$}}
// UNICODE_1-NEXT: Decl/CurrNominal: ()[#Void#]{{$}}
// UNICODE_1-NEXT: Keyword/None: metatype[#Unicode1.metatype#]{{$}}
// UNICODE_1-NEXT: End completions