Skip to content

Commit c76c039

Browse files
author
Arjun Nayini
committed
[stdlib] Update IDE tests
1 parent a7059ba commit c76c039

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

test/IDE/complete_operators.swift

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
// RUN: %target-swift-ide-test -code-completion -source-filename=%s -code-completion-token=INFIX_14 | %FileCheck %s -check-prefix=NO_OPERATORS
4141
// RUN: %target-swift-ide-test -code-completion -source-filename=%s -code-completion-token=INFIX_15 | %FileCheck %s -check-prefix=NO_OPERATORS
4242
// RUN: %target-swift-ide-test -code-completion -source-filename=%s -code-completion-token=INFIX_16 | %FileCheck %s -check-prefix=NO_OPERATORS
43-
// RUN: %target-swift-ide-test -code-completion -source-filename=%s -code-completion-token=INFIX_17 | %FileCheck %s -check-prefix=NO_OPERATORS
43+
// RUN: %target-swift-ide-test -code-completion -source-filename=%s -code-completion-token=INFIX_17 | %FileCheck %s -check-prefix=VOID_OPERATORS
4444
// RUN: %target-swift-ide-test -code-completion -source-filename=%s -code-completion-token=INFIX_18 | %FileCheck %s -check-prefix=NO_OPERATORS
4545
// RUN: %target-swift-ide-test -code-completion -source-filename=%s -code-completion-token=INFIX_19 | %FileCheck %s -check-prefix=EMPTYCLASS_INFIX
4646
// RUN: %target-swift-ide-test -code-completion -source-filename=%s -code-completion-token=INFIX_20 | %FileCheck %s -check-prefix=NO_OPERATORS
@@ -244,6 +244,7 @@ func testInfix11() {
244244
S2#^INFIX_11^#
245245
}
246246
// NO_OPERATORS-NOT: Decl[InfixOperatorFunction]
247+
247248
func testInfix12() {
248249
P#^INFIX_12^#
249250
}
@@ -259,9 +260,20 @@ func testInfix15<T: P where T.T == S2>() {
259260
func testInfix16<T: P where T.T == S2>() {
260261
T.foo#^INFIX_16^#
261262
}
263+
262264
func testInfix17(x: Void) {
263265
x#^INFIX_17^#
264266
}
267+
268+
// VOID_OPERATORS: Begin completions
269+
// VOID_OPERATORS-DAG: Decl[InfixOperatorFunction]/OtherModule[Swift]: != {#()#}[#Bool#]; name=!= ()
270+
// VOID_OPERATORS-DAG: Decl[InfixOperatorFunction]/OtherModule[Swift]: == {#()#}[#Bool#]; name=== ()
271+
// VOID_OPERATORS-DAG: Decl[InfixOperatorFunction]/OtherModule[Swift]: <= {#()#}[#Bool#]; name=<= ()
272+
// VOID_OPERATORS-DAG: Decl[InfixOperatorFunction]/OtherModule[Swift]: >= {#()#}[#Bool#]; name=>= ()
273+
// VOID_OPERATORS-DAG: Decl[InfixOperatorFunction]/OtherModule[Swift]: < {#()#}[#Bool#]; name=< ()
274+
// VOID_OPERATORS-DAG: Decl[InfixOperatorFunction]/OtherModule[Swift]: > {#()#}[#Bool#]; name=> ()
275+
// VOID_OPERATORS: End completions
276+
265277
func testInfix18(x: (S2, S2) {
266278
x#^INFIX_18^#
267279
}

0 commit comments

Comments
 (0)