Skip to content

Commit

Permalink
Added a regression test for the "User: " prefix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rhennigan committed Jan 13, 2025
1 parent 59b42e3 commit 86d33cb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Tests/RelatedDocumentation.wlt
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,13 @@ VerificationTest[
SameTest -> MatchQ,
TestID -> "RelatedDocumentation-Prompt-Selection-Count@@Tests/RelatedDocumentation.wlt:154,1-159,2"
]

(* ::**************************************************************************************************************:: *)
(* ::Subsection::Closed:: *)
(*Regression Tests*)
VerificationTest[
RelatedDocumentation[ { <| "Role" -> "User", "Content" -> "Hello" |> }, "Prompt", "FilterResults" -> False ],
_String? (StringFreeQ[ "$Username" ]),
SameTest -> MatchQ,
TestID -> "RelatedDocumentation-Regression-UserPrefix@@Tests/RelatedDocumentation.wlt:164,1-169,2"
]

0 comments on commit 86d33cb

Please sign in to comment.