Skip to content

Commit 9945883

Browse files
committed
fix autocomplete tests now that Job is a possible completion
1 parent 443f95e commit 9945883

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

test/Sema/typo_correction.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import NoSuchModule
1010

1111
// This is close enough to get typo-correction.
1212
func test_short_and_close() {
13-
let foo = 4 // expected-note {{'foo' declared here}}
13+
let foo = 4 // expected-note {{did you mean 'foo'}}
1414
let bab = fob + 1
15-
// expected-error@-1 {{cannot find 'fob' in scope; did you mean 'foo'?}}
15+
// expected-error@-1 {{cannot find 'fob' in scope}}
1616
}
1717

1818
// This is not.

test/Sema/typo_correction_limit.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
// This is close enough to get typo-correction.
44
func test_short_and_close() {
5-
let foo = 4 // expected-note 5 {{'foo' declared here}}
6-
let _ = fob + 1 // expected-error {{cannot find 'fob' in scope; did you mean 'foo'?}}
7-
let _ = fob + 1 // expected-error {{cannot find 'fob' in scope; did you mean 'foo'?}}
8-
let _ = fob + 1 // expected-error {{cannot find 'fob' in scope; did you mean 'foo'?}}
9-
let _ = fob + 1 // expected-error {{cannot find 'fob' in scope; did you mean 'foo'?}}
10-
let _ = fob + 1 // expected-error {{cannot find 'fob' in scope; did you mean 'foo'?}}
5+
let foo = 4 // expected-note 5 {{did you mean 'foo'?}}
6+
let _ = fob + 1 // expected-error {{cannot find 'fob' in scope}}
7+
let _ = fob + 1 // expected-error {{cannot find 'fob' in scope}}
8+
let _ = fob + 1 // expected-error {{cannot find 'fob' in scope}}
9+
let _ = fob + 1 // expected-error {{cannot find 'fob' in scope}}
10+
let _ = fob + 1 // expected-error {{cannot find 'fob' in scope}}
1111
let _ = fob + 1 // expected-error {{cannot find 'fob' in scope}}
1212
}

0 commit comments

Comments
 (0)