weighted wildcards: corrections after automated tests#4621
Merged
vladmandic merged 1 commit intovladmandic:devfrom Feb 5, 2026
Merged
weighted wildcards: corrections after automated tests#4621vladmandic merged 1 commit intovladmandic:devfrom
vladmandic merged 1 commit intovladmandic:devfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 <>