From 650a160f04cabdbb7e21faf047fbe39dd071dd4f Mon Sep 17 00:00:00 2001 From: KCaverly Date: Wed, 27 Sep 2023 09:06:53 -0400 Subject: [PATCH] update test outline for prompt tests for new cursor span --- crates/assistant/src/prompts.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/assistant/src/prompts.rs b/crates/assistant/src/prompts.rs index 04cf5d089be4d145f9d0e45481e392fb8b415840..ee58090d04dbff9d7da058a905c9e52b8fe1b0cd 100644 --- a/crates/assistant/src/prompts.rs +++ b/crates/assistant/src/prompts.rs @@ -260,7 +260,7 @@ pub(crate) mod tests { outline.as_deref(), Some(indoc! {" struct X - <||>a: usize + <|START|>a: usize b impl X fn new @@ -282,7 +282,7 @@ pub(crate) mod tests { b impl X fn new() -> Self { - let <|a |>= 1; + let <|START|a |END|>= 1; let b = 2; Self { a, b } } @@ -303,7 +303,7 @@ pub(crate) mod tests { a b impl X - <||> + <|START|> fn new fn a fn b @@ -323,12 +323,12 @@ pub(crate) mod tests { b impl X fn new() -> Self { - let <|a = 1; + let <|START|a = 1; let b = 2; Self { a, b } } - pub f|>n a(&self, param: bool) -> usize { + pub f|END|>n a(&self, param: bool) -> usize { self.a } fn b @@ -346,14 +346,14 @@ pub(crate) mod tests { struct X a b - impl X<| { + impl X<|START| { fn new() -> Self { let a = 1; let b = 2; Self { a, b } } - |> + |END|> fn a fn b "}) @@ -374,7 +374,7 @@ pub(crate) mod tests { fn new fn a pub fn b(&self) -> usize { - <||>self.b + <|START|>self.b } "}) );