Skip to content

Commit 614a326

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

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

test/Sema/typo_correction.swift

Lines changed: 3 additions & 3 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}}
14-
let bab = fob + 1
15-
// expected-error@-1 {{cannot find 'fob' in scope; did you mean 'foo'?}}
13+
let plop = 4 // expected-note {{'plop' declared here}}
14+
let bab = plob + 1
15+
// expected-error@-1 {{cannot find 'plob' in scope}}
1616
}
1717

1818
// This is not.

test/Sema/typo_correction_limit.swift

Lines changed: 7 additions & 7 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'?}}
11-
let _ = fob + 1 // expected-error {{cannot find 'fob' in scope}}
5+
let boop = 4 // expected-note 5 {{did you mean 'boop'?}}
6+
let _ = bood + 1 // expected-error {{cannot find 'bood' in scope}}
7+
let _ = bood + 1 // expected-error {{cannot find 'bood' in scope}}
8+
let _ = bood + 1 // expected-error {{cannot find 'bood' in scope}}
9+
let _ = bood + 1 // expected-error {{cannot find 'bood' in scope}}
10+
let _ = bood + 1 // expected-error {{cannot find 'bood' in scope}}
11+
let _ = bood + 1 // expected-error {{cannot find 'bood' in scope}}
1212
}

0 commit comments

Comments
 (0)