<commit_before>*** Settings ***
Suite Setup      Run Tests    ${EMPTY}    running/test_template_with_embeded_args.txt
Force Tags       regression    pybot    jybot
Resource         atest_resource.txt

*** Test Cases ***
Matching arguments
    Check Test Case    ${TESTNAME}

Argument names do not need to be same as in definition
    Check Test Case    ${TESTNAME}

Some arguments can be hard-coded
    Check Test Case    ${TESTNAME}

Can have different arguments than definition
    Check Test Case    ${TESTNAME}

Can use variables
    Check Test Case    ${TESTNAME}

Cannot have more arguments than variables
    Check Test Case    ${TESTNAME}

Cannot have less arguments than variables
    Check Test Case    ${TESTNAME}<commit_msg>Templates w/ embedded args: Test built kw names and args.<commit_after>*** Settings ***
Suite Setup      Run Tests    ${EMPTY}    running/test_template_with_embeded_args.txt
Force Tags       regression    pybot    jybot
Resource         atest_resource.txt

*** Test Cases ***
Matching arguments
    ${tc} =    Check Test Case    ${TESTNAME}
    Keyword should be    ${tc.kws[0]}   The result of 1 + 1 should be 2
    Keyword should be    ${tc.kws[1]}   The result of 1 + 2 should be 3
    Keyword should be    ${tc.kws[2]}   The result of 1 + 3 should be 5

Argument names do not need to be same as in definition
    ${tc} =    Check Test Case    ${TESTNAME}
    Keyword should be    ${tc.kws[0]}   The result of 1 + 1 should be 2
    Keyword should be    ${tc.kws[1]}   The result of 1 + 2 should be 3
    Keyword should be    ${tc.kws[2]}   The result of 1 + 3 should be 5

Some arguments can be hard-coded
    ${tc} =    Check Test Case    ${TESTNAME}
    Keyword should be    ${tc.kws[0]}   The result of 1 + 1 should be 3
    Keyword should be    ${tc.kws[1]}   The result of 1 + 2 should be 3
    Keyword should be    ${tc.kws[2]}   The result of 1 + 3 should be 3

Can have different arguments than definition
    ${tc} =    Check Test Case    ${TESTNAME}
    Keyword should be    ${tc.kws[0]}   The result of 38 + 3 + 1 should be 42
    Keyword should be    ${tc.kws[1]}   The non-existing of 666 should be 42

Can use variables
    ${tc} =    Check Test Case    ${TESTNAME}
    Keyword should be    ${tc.kws[0]}   The result of \${1} + \${2} should be \${3}

Cannot have more arguments than variables
    ${tc} =    Check Test Case    ${TESTNAME}
    Keyword should be    ${tc.kws[0]}    The result of \${calc} should be 3
    ...    1 + 2    extra

Cannot have less arguments than variables
    ${tc} =    Check Test Case    ${TESTNAME}
    Keyword should be    ${tc.kws[0]}    The result of \${calc} should be \${extra}
    ...    1 + 2

*** Keywords ***
Keyword should be
    [Arguments]    ${kw}    ${name}    @{args}
    Should Be Equal    ${kw.name}    ${name}
    Lists Should Be Equal    ${kw.args}    ${args}
{'fraction_non_alphanumeric': 0.09678546470999301, 'fraction_numerical': 0.020964360587002098, 'mean_word_length': 2.5042839657282743, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6341955', 'n_tokens_mistral': 917, 'n_tokens_neox': 869, 'n_words': 377}