* implemented proper support for variable echoing inside wildcard names.

This commit is contained in:
Antonio Cordero Balcazar
2025-12-08 13:11:43 +01:00
parent b2e30a6b02
commit 4bd8a4d71a
4 changed files with 36 additions and 64 deletions
+2 -2
View File
@@ -1196,8 +1196,8 @@ class TestPromptPostProcessor(TestPromptPostProcessorBase):
def test_wc_dynamicwildcard(self): # wildcard built from variables
self.process(
PromptPair("the choices are: ${x={1|2|3}} __yaml/wildcard${x}__", ""),
PromptPair("the choices are: choice1-choice3-choice1", ""),
PromptPair("the choices are: ${x={1|2|3}}${w=yaml/wildcard${x}}__yaml/wildcard${x}__ __${w}__ __<ppp:echo w/>__", ""),
PromptPair("the choices are: choice1-choice3-choice1 choice3- choice2 - choice2 choice3", ""),
ppp=self.nocupppp,
)