Skip to content

weighted wildcards: corrections after automated tests#4621

Merged
vladmandic merged 1 commit intovladmandic:devfrom
Tillerz:dev
Feb 5, 2026
Merged

weighted wildcards: corrections after automated tests#4621
vladmandic merged 1 commit intovladmandic:devfrom
Tillerz:dev

Conversation

@Tillerz
Copy link
Copy Markdown
Contributor

@Tillerz Tillerz commented Feb 4, 2026

Automated test + code modifications done to ensure all test cases give the proper results:

{} - empty
{red|blonde|black} - no weights
{red:0.1|blonde:0.9} - full weights <= 1
{red:0|blonde|black:0} - disabling 0 weights to force one result
{red:0.5|blonde|black:0.3|brown} - weights <= 1 with distribution of the leftover
{red:1|blonde:2|black:4} - weights > 1 to test normalization
{red:2|blonde|black} - weights > 1, unweighted options should get default of 1
{red:0.5|(blonde:1.3)} - ignore content of ()
{red:0.5|[stuff:1.3]} - ignore content of []
{red:0.5|lora:1.0} - ignore content of <>

@vladmandic vladmandic merged commit c3c3930 into vladmandic:dev Feb 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants