<commit_before>const tests = [{
    message: 'should pass through two value syntax',
    fixture: 'background:space round',
    expected: 'background:space round'
}];

const mappings = {
    'repeat-x': 'repeat no-repeat',
    'repeat-y': 'no-repeat repeat',
    repeat: 'repeat repeat',
    space: 'space space',
    round: 'round round',
    'no-repeat': 'no-repeat no-repeat',
};

Object.keys(mappings).forEach(mapping => {
    tests.push({
        message: `should handle ${mapping} (background)`,
        fixture: `background:#000 url(cat.jpg) ${mappings[mapping]} 50%`,
        expected: `background:#000 url(cat.jpg) ${mapping} 50%`
    }, {
        message: `should handle ${mapping} (background-repeat)`,
        fixture: `background-repeat:${mappings[mapping]}`,
        expected: `background-repeat:${mapping}`
    });
});

module.exports.name = 'cssnano/reduce-background-repeat';
module.exports.tests = tests;<commit_msg>Multiple value testing.<commit_after>const tests = [{
    message: 'should pass through two value syntax',
    fixture: 'background:space round',
    expected: 'background:space round'
}];

const mappings = {
    'repeat-x': 'repeat no-repeat',
    'repeat-y': 'no-repeat repeat',
    repeat: 'repeat repeat',
    space: 'space space',
    round: 'round round',
    'no-repeat': 'no-repeat no-repeat',
};

Object.keys(mappings).forEach(mapping => {
    tests.push({
        message: `should handle ${mapping} (background)`,
        fixture: `background:#000 url(cat.jpg) ${mappings[mapping]} 50%`,
        expected: `background:#000 url(cat.jpg) ${mapping} 50%`
    }, {
        message: `should handle ${mapping} (background-repeat)`,
        fixture: `background-repeat:${mappings[mapping]}`,
        expected: `background-repeat:${mapping}`
    }, {
        message: `should handle multiple instances (background)`,
        fixture: `background-repeat:#000 url(cat.jpg) ${mappings[mapping]} 50%,#000 url(cat.jpg) ${mappings[mapping]} 50%`,
        expected: `background-repeat:#000 url(cat.jpg) ${mapping} 50%,#000 url(cat.jpg) ${mapping} 50%`
    }, {
        message: `should handle multiple instances (background-repeat)`,
        fixture: `background-repeat:${mappings[mapping]},${mappings[mapping]}`,
        expected: `background-repeat:${mapping},${mapping}`
    });
});

module.exports.name = 'cssnano/reduce-background-repeat';
module.exports.tests = tests;
{'fraction_non_alphanumeric': 0.17478152309612985, 'fraction_numerical': 0.016645859342488557, 'mean_word_length': 3.779324055666004, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6984551', 'n_tokens_mistral': 749, 'n_tokens_neox': 718, 'n_words': 163}