mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +00:00
update test outline for prompt tests for new cursor span
This commit is contained in:
parent
90f17d4a28
commit
650a160f04
1 changed files with 8 additions and 8 deletions
|
@ -260,7 +260,7 @@ pub(crate) mod tests {
|
||||||
outline.as_deref(),
|
outline.as_deref(),
|
||||||
Some(indoc! {"
|
Some(indoc! {"
|
||||||
struct X
|
struct X
|
||||||
<||>a: usize
|
<|START|>a: usize
|
||||||
b
|
b
|
||||||
impl X
|
impl X
|
||||||
fn new
|
fn new
|
||||||
|
@ -282,7 +282,7 @@ pub(crate) mod tests {
|
||||||
b
|
b
|
||||||
impl X
|
impl X
|
||||||
fn new() -> Self {
|
fn new() -> Self {
|
||||||
let <|a |>= 1;
|
let <|START|a |END|>= 1;
|
||||||
let b = 2;
|
let b = 2;
|
||||||
Self { a, b }
|
Self { a, b }
|
||||||
}
|
}
|
||||||
|
@ -303,7 +303,7 @@ pub(crate) mod tests {
|
||||||
a
|
a
|
||||||
b
|
b
|
||||||
impl X
|
impl X
|
||||||
<||>
|
<|START|>
|
||||||
fn new
|
fn new
|
||||||
fn a
|
fn a
|
||||||
fn b
|
fn b
|
||||||
|
@ -323,12 +323,12 @@ pub(crate) mod tests {
|
||||||
b
|
b
|
||||||
impl X
|
impl X
|
||||||
fn new() -> Self {
|
fn new() -> Self {
|
||||||
let <|a = 1;
|
let <|START|a = 1;
|
||||||
let b = 2;
|
let b = 2;
|
||||||
Self { a, b }
|
Self { a, b }
|
||||||
}
|
}
|
||||||
|
|
||||||
pub f|>n a(&self, param: bool) -> usize {
|
pub f|END|>n a(&self, param: bool) -> usize {
|
||||||
self.a
|
self.a
|
||||||
}
|
}
|
||||||
fn b
|
fn b
|
||||||
|
@ -346,14 +346,14 @@ pub(crate) mod tests {
|
||||||
struct X
|
struct X
|
||||||
a
|
a
|
||||||
b
|
b
|
||||||
impl X<| {
|
impl X<|START| {
|
||||||
|
|
||||||
fn new() -> Self {
|
fn new() -> Self {
|
||||||
let a = 1;
|
let a = 1;
|
||||||
let b = 2;
|
let b = 2;
|
||||||
Self { a, b }
|
Self { a, b }
|
||||||
}
|
}
|
||||||
|>
|
|END|>
|
||||||
fn a
|
fn a
|
||||||
fn b
|
fn b
|
||||||
"})
|
"})
|
||||||
|
@ -374,7 +374,7 @@ pub(crate) mod tests {
|
||||||
fn new
|
fn new
|
||||||
fn a
|
fn a
|
||||||
pub fn b(&self) -> usize {
|
pub fn b(&self) -> usize {
|
||||||
<||>self.b
|
<|START|>self.b
|
||||||
}
|
}
|
||||||
"})
|
"})
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue