Skip to content

Commit bd6d5fa

Browse files
committed
fix the typo_correction tests differently
1 parent 9945883 commit bd6d5fa

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 {{did you mean 'foo'}}
14-
let bab = fob + 1
15-
// expected-error@-1 {{cannot find 'fob' in scope}}
13+
let boop = 4 // expected-note {{did you mean 'boop' declared here}}
14+
let bab = bood + 1
15+
// expected-error@-1 {{cannot find 'fob' in scope; did you mean 'foo'?}}
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 {{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}}
11-
let _ = fob + 1 // expected-error {{cannot find 'fob' in scope}}
5+
let boop = 4 // expected-note 5 {{'boop' declared here}}
6+
let _ = bood + 1 // expected-error {{cannot find 'bood' in scope; did you mean 'boop'?}}
7+
let _ = bood + 1 // expected-error {{cannot find 'bood' in scope; did you mean 'boop'?}}
8+
let _ = bood + 1 // expected-error {{cannot find 'bood' in scope; did you mean 'boop'?}}
9+
let _ = bood + 1 // expected-error {{cannot find 'bood' in scope; did you mean 'boop'?}}
10+
let _ = bood + 1 // expected-error {{cannot find 'bood' in scope; did you mean 'boop'?}}
11+
let _ = bood + 1 // expected-error {{cannot find 'bood' in scope; did you mean 'boop'?}}
1212
}

0 commit comments

Comments
 (0)