#-*- coding:utf-8 -*-

test_awh = {
    'src' : 'test_awh.txt',
    'case' : ['1', '2', '3'],
    'ans' : ['The character a in str_test is encountered 0 !#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~please input the mode before test(1~3)EasyThe sum of input numbers is 55The cov of input number is 8quick sort success!c is 5variable and const defination passed!\n',
    'The character a in str_test is encountered 0 !#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~please input the mode before test(1~3)MiddleThe sum of input numbers is 1294The cov of input number is 2305quick sort success!c is 5variable and const defination passed!\n',
    'The character a in str_test is encountered 0 !#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~please input the mode before test(1~3)HardThe sum of input numbers is 20317The cov of input number is 398502quick sort success!c is 5variable and const defination passed!\n'
    ]
}

test_jjh = {
    'src' : 'test_jjh.txt',
    'case' : [

        '1\n234\n-\n432\n1\n-12\n*\n-4\n0',
        '2\n0\n',
        '3\n15\n9\n0\n',
        '4\n_\n4\n1\n4\nx\n4\nS\n0\n'
    ],
    'ans' : [
        '234-432=-198    -12*-4=48    \n',
        ' -10 -8 -1 1 2 2 3 10 16 40    \n',
        'Please input a smaller one:362880    \n',
        'True    False    True    True    \n'
    ]
}

test_lx = {
    'src' : 'test_lx.txt',
    'case' : [
        's\n',
        'c\n5\n3\n',
        'n\n3\na\nZ\n-\n'
    ],
    'ans' : [
        ' All Sort Algorithm Result Accepted!\n',
        '10\n',
        ' Next letter: b Next letter: a Not a letter: -\n'
    ]
}

test_null = {
    'src' : 'test_null.txt',
    'case' : [
        '1\n1\n1\n0\na\n',
        '1\n2\n3\n2\nd\n',
        '10\n1\n8\n9\nc\n'
    ],
    'ans' : [
        'if test  okplease input 3 int(the 3rd int must >0):loop test okplease input int(0-9) & char values(a-e):97Apassed\n',
        'if test  okplease input 3 int(the 3rd int must >0):loop test okplease input int(0-9) & char values(a-e):102Dpassed\n',
        'if test  okplease input 3 int(the 3rd int must >0):loop test okplease input int(0-9) & char values(a-e):108Cpassed\n'
    ]
}

test_wyc = {
    'src' : 'test_wyc.txt',
    'case' : [
        '6\n2\n',
        '-1\n1\n',
        '11\n0\n'
    ],
    'ans' : [
        'no errors seem found. m! = 720repeat m! : 720n! = 2repeat n! : 2C(m, n) = 15\n',
        'n should be no greater than m.\n',
        'm is too big. \n'
    ]
}

test_xjs = {
    'src' : 'test_xjs.txt',
    'case' : [
       '2\n4\n5\n',
       '3\n',
       '4\n1\na\n' 
    ],
    'ans' : [
        '1b412334\n',
        'test function:bcdb202334\n',
        'test switch:key is 122334\n'
    ]
}

test_ycy = {
    'src' : 'test_ycy.txt',
    'case' : [
        '0\n4\n',
        '0\n15\n',
        '1\na\n2\n',
        '13\n'
    ],
    'ans' : [
        'INPUT YOUR OPCODE,0 : function1_x , 1: function2input a numreturn code is 16\n',
        'INPUT YOUR OPCODE,0 : function1_x , 1: function2input a numreturn code is 15\n',
        'INPUT YOUR OPCODE,0 : function1_x , 1: function2input a char   input a num (num < 11) HEaLOWWORLD\n',
        'INPUT YOUR OPCODE,0 : function1_x , 1: function2error op!13\n'
    ]
}

test_yww = {
    'src' : 'test_yww.txt',
    'case' : [
        '1\n',
        '2\n',
        '3\n'
    ],
    'ans' : [
        'Please input your choice number:(<0>quit <1>Test 1 <2>Test 2 <3>Test 3)Test 1:left_index=7right_index=10Subarray sum=43Test 1 passed!Quit Test...\n',
        'Please input your choice number:(<0>quit <1>Test 1 <2>Test 2 <3>Test 3)Test 2:left_index=5right_index=11Subarray sum=47Test 2 passed!Quit Test...\n',
        'Please input your choice number:(<0>quit <1>Test 1 <2>Test 2 <3>Test 3)Test 3:left_index=8right_index=8Subarray sum=5Test 3 passed!Quit Test...\n'
    ]
}

test_zf = {
    'src' : 'test_zf.txt',
    'case' : [
        '2\na\n-3\n4\nf\n',
        '2\nb\n10\nd\n26\n',
        '1\ne\n15\n24\n'
    ],
    'ans' : [
        'expre:-7 string:!#$%&\'()*+,-./:;<=>?@[]^_`{|}~\n',
        'fibo:55 abcdefghijklmnopqrstuvwxyz \n',
        'gcd:3 \n'
    ]
}

test_zhw = {
    'src' : 'test_zhw.txt',
    'case' : [
        '-1\n0\na\nb\n',
        '0\n2\nb\na\n',
        '7\n3\n7\n9\n'
    ],
    'ans' : [
        'wrong input!\n',
        'The result of case i is done!The result of case c is done!result one is:6result two is:1The sum of numbers between two results is:21\n',
        'The result of case i is done!The result of case c is done!result one is:40320result two is:24no result!\n'
    ]
}
testList_0 = [test_awh, test_jjh, test_lx, test_null, test_wyc, test_xjs, test_ycy, test_yww, test_zf, test_zhw]