예제 #1
0
def getTests():
    tests = []

    suite = testTemplate.testSuite("Sample Test Suite1", print_count=True)
    testcase = testTemplate.regexTester("1", "1", "sample1")
    suite.add(testcase)
    testcase = testTemplate.regexTester("2", "5", "sample2")
    suite.add(testcase)
    testcase = testTemplate.regexTester("3", "13", "sample3")
    suite.add(testcase)
    testcase = testTemplate.regexTester("4", "27", "sample4")
    suite.add(testcase)
    testcase = testTemplate.regexTester("5", "48", "sample5")
    suite.add(testcase)
    testcase = testTemplate.regexTester("6", "78", "sample6")
    suite.add(testcase)
    testcase = testTemplate.regexTester("7", "118", "sample7")
    suite.add(testcase)
    testcase = testTemplate.regexTester("8", "170", "sample8")
    suite.add(testcase)
    testcase = testTemplate.regexTester("9", "235", "sample9")
    suite.add(testcase)
    testcase = testTemplate.regexTester("10", "315", "sample10")
    suite.add(testcase)
    tests.append(suite)

    return tests
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1")
	testcase = testTemplate.regexTester('''10
1
1''' , "2" , "sample")
	suite.add(testcase)
	tests.append(suite)
	
	suite=testTemplate.testSuite("Sample Test Suite2")
	testcase = testTemplate.regexTester('''5
2
2 3''' , "4" , "sample")
	suite.add(testcase)
	tests.append(suite)
	
	suite=testTemplate.testSuite("Sample Test Suite3")
	testcase = testTemplate.regexTester('''19
2
4 5''' , "8" , "sample")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
def getTests():
    tests = []

    suite = testTemplate.testSuite("Sample Test Suite1", print_count=True)
    testcase = testTemplate.regexTester(
        '''
6 5
01101
11010
01110
11110
11111
00000''', "9", "sample1")
    suite.add(testcase)
    testcase = testTemplate.regexTester(
        '''
9 8
00010111
01100101
10111101
00010000
00100010
11100111
10011001
01001100
10010000''', "4", "sample2")
    suite.add(testcase)
    tests.append(suite)

    return tests
예제 #4
0
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1")
	testcase = testTemplate.regexTester("2 3\n1 5\n2 3" , "8" , "sample")
	suite.add(testcase)
	tests.append(suite)
	
	suite=testTemplate.testSuite("Sample Test Suite2")
	testcase = testTemplate.regexTester("5 10\n3 20\n2 20\n1 20\n4 20\n5 20" , "60" , "sample")
	suite.add(testcase)
	tests.append(suite)
	
	suite=testTemplate.testSuite("Sample Test Suite3")
	testcase = testTemplate.regexTester("2 3\n2 5\n2 3" , "6" , "sample")
	suite.add(testcase)
	tests.append(suite)
	
	suite=testTemplate.testSuite("Sample Test Suite4")
	testcase = testTemplate.regexTester("2 3\n2 5\n1 3" , "8" , "sample")
	suite.add(testcase)
	tests.append(suite)
	
	suite=testTemplate.testSuite("Sample Test Suite5")
	testcase = testTemplate.regexTester("3 2\n1 3\n2 2\n3 4" , "8" , "sample")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1")
	testcase = testTemplate.regexTester("long_and_mnemonic_identifier" , "longAndMnemonicIdentifier" , "sample1")
	suite.add(testcase)
	testcase = testTemplate.regexTester("anotherExample" , "another_example" , "sample2")
	suite.add(testcase)
	testcase = testTemplate.regexTester("i" , "i" , "sample3")
	suite.add(testcase)
	testcase = testTemplate.regexTester("bad_Style" , "Error!" , "sample4")
	suite.add(testcase)
	testcase = testTemplate.regexTester("i_" , "Error!" , "sample5")
	suite.add(testcase)
	testcase = testTemplate.regexTester("n_e_e_r_c" , "nEERC" , "sample6")
	suite.add(testcase)
	testcase = testTemplate.regexTester("nEERC" , "n_e_e_r_c" , "sample7")
	suite.add(testcase)
	testcase = testTemplate.regexTester("longAndMnemonicIdentifier" , "long_and_mnemonic_identifier" , "sample8")
	suite.add(testcase)
	testcase = testTemplate.regexTester("c_identifier" , "cIdentifier" , "sample9")
	suite.add(testcase)
	testcase = testTemplate.regexTester("javaIdentifier" , "java_identifier" , "sample10")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
예제 #6
0
def getTests():
    tests = []

    suite = testTemplate.testSuite("Sample Test Suite1")
    testcase = testTemplate.regexTester('''10
1
1''', "2", "sample")
    suite.add(testcase)
    tests.append(suite)

    suite = testTemplate.testSuite("Sample Test Suite2")
    testcase = testTemplate.regexTester('''5
2
2 3''', "4", "sample")
    suite.add(testcase)
    tests.append(suite)

    suite = testTemplate.testSuite("Sample Test Suite3")
    testcase = testTemplate.regexTester('''19
2
4 5''', "8", "sample")
    suite.add(testcase)
    tests.append(suite)

    return tests
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1")
	testcase = testTemplate.regexTester("apple\npepperoni" , "2" , "sample")
	suite.add(testcase)
	tests.append(suite)
	
	suite=testTemplate.testSuite("Sample Test Suite2")
	testcase = testTemplate.regexTester("lover\ndriver" , "1" , "sample")
	suite.add(testcase)
	tests.append(suite)
	
	suite=testTemplate.testSuite("Sample Test Suite3")
	testcase = testTemplate.regexTester("bidhan\nroy" , "-1" , "sample")
	suite.add(testcase)
	tests.append(suite)
	
	suite=testTemplate.testSuite("Sample Test Suite4")
	testcase = testTemplate.regexTester("testsetses\nteeptes" , "3" , "sample")
	suite.add(testcase)
	tests.append(suite)
	
	suite=testTemplate.testSuite("Test#11")
	testcase = testTemplate.regexTester("aaaaaaaaaaaaaaaaaaaaaaa\nbbbbbbbbbaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbb" , "-1" , "sample")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
def getTests():
    tests = []

    suite = testTemplate.testSuite("Sample Test Suite1")
    testcase = testTemplate.regexTester("long_and_mnemonic_identifier",
                                        "longAndMnemonicIdentifier", "sample1")
    suite.add(testcase)
    testcase = testTemplate.regexTester("anotherExample", "another_example",
                                        "sample2")
    suite.add(testcase)
    testcase = testTemplate.regexTester("i", "i", "sample3")
    suite.add(testcase)
    testcase = testTemplate.regexTester("bad_Style", "Error!", "sample4")
    suite.add(testcase)
    testcase = testTemplate.regexTester("i_", "Error!", "sample5")
    suite.add(testcase)
    testcase = testTemplate.regexTester("n_e_e_r_c", "nEERC", "sample6")
    suite.add(testcase)
    testcase = testTemplate.regexTester("nEERC", "n_e_e_r_c", "sample7")
    suite.add(testcase)
    testcase = testTemplate.regexTester("longAndMnemonicIdentifier",
                                        "long_and_mnemonic_identifier",
                                        "sample8")
    suite.add(testcase)
    testcase = testTemplate.regexTester("c_identifier", "cIdentifier",
                                        "sample9")
    suite.add(testcase)
    testcase = testTemplate.regexTester("javaIdentifier", "java_identifier",
                                        "sample10")
    suite.add(testcase)
    tests.append(suite)

    return tests
예제 #9
0
def getTests():
    tests = []

    suite = testTemplate.testSuite("Sample Test Suite1")
    testcase = testTemplate.regexTester("apple\npepperoni", "2", "sample")
    suite.add(testcase)
    tests.append(suite)

    suite = testTemplate.testSuite("Sample Test Suite2")
    testcase = testTemplate.regexTester("lover\ndriver", "1", "sample")
    suite.add(testcase)
    tests.append(suite)

    suite = testTemplate.testSuite("Sample Test Suite3")
    testcase = testTemplate.regexTester("bidhan\nroy", "-1", "sample")
    suite.add(testcase)
    tests.append(suite)

    suite = testTemplate.testSuite("Sample Test Suite4")
    testcase = testTemplate.regexTester("testsetses\nteeptes", "3", "sample")
    suite.add(testcase)
    tests.append(suite)

    suite = testTemplate.testSuite("Test#11")
    testcase = testTemplate.regexTester(
        "aaaaaaaaaaaaaaaaaaaaaaa\nbbbbbbbbbaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbb",
        "-1", "sample")
    suite.add(testcase)
    tests.append(suite)

    return tests
def getTests():
    tests = []

    suite = testTemplate.testSuite("Sample Test Suite1")
    testcase = testTemplate.regexTester("3\n3 2 1", "yes\n1 3", "sample")
    suite.add(testcase)
    tests.append(suite)

    suite = testTemplate.testSuite("Sample Test Suite2")
    testcase = testTemplate.regexTester("4\n2 1 3 4", "yes\n1 2", "sample")
    suite.add(testcase)
    tests.append(suite)

    suite = testTemplate.testSuite("Sample Test Suite3")
    testcase = testTemplate.regexTester("4\n3 1 2 4", "no", "sample")
    suite.add(testcase)
    tests.append(suite)

    suite = testTemplate.testSuite("Sample Test Suite4")
    testcase = testTemplate.regexTester("2\n1 2", "yes\n1 1", "sample")
    suite.add(testcase)
    tests.append(suite)

    suite = testTemplate.testSuite("Sample Test Suite5")
    testcase = testTemplate.regexTester("10\n1 2 2 2 7 6 5 4 3 8 ", "yes\n5 9",
                                        "sample")
    suite.add(testcase)
    tests.append(suite)

    suite = testTemplate.testSuite("Sample Test Suite6")
    testcase = testTemplate.regexTester("10\n1 2 2 2 7 6 5 4 3 7 ", "yes\n5 9",
                                        "sample")
    suite.add(testcase)
    tests.append(suite)

    suite = testTemplate.testSuite("Sample Test Suite7")
    testcase = testTemplate.regexTester("12\n1 2 2 2 7 6 5 4 3 7 7 8",
                                        "yes\n5 9", "sample")
    suite.add(testcase)
    tests.append(suite)

    suite = testTemplate.testSuite("Sample Test Suite8")
    testcase = testTemplate.regexTester("11\n1 2 2 2 7 6 5 4 2 2 7 ",
                                        "yes\n5 10", "sample")
    suite.add(testcase)
    tests.append(suite)

    suite = testTemplate.testSuite("Sample Test Suite9")
    testcase = testTemplate.regexTester("11\n1 2 2 2 7 6 5 4 2 3 7 ", "no",
                                        "sample")
    suite.add(testcase)
    tests.append(suite)

    suite = testTemplate.testSuite("Sample Test Suite10")
    testcase = testTemplate.regexTester("11\n1 2 2 7 7 6 5 4 2 2 7 ",
                                        "yes\n4 10", "sample")
    suite.add(testcase)
    tests.append(suite)

    return tests
예제 #11
0
def getTests():
    tests = []

    suite = testTemplate.testSuite("Sample Test Suite1")
    testcase = testTemplate.regexTester(" 4 \n1/4 \n1/2 \n1/2 \n3/4 ", "3",
                                        "sample")
    suite.add(testcase)
    tests.append(suite)

    suite = testTemplate.testSuite("Sample Test Suite12")
    testcase = testTemplate.regexTester(
        "9 \n3/4 \n1/2 \n1/4 \n1/4 \n1/4 \n1/4 \n1/4 \n1/4 \n1/4 ", "4",
        "sample")
    suite.add(testcase)
    tests.append(suite)

    suite = testTemplate.testSuite("Sample Test Suite13")
    testcase = testTemplate.regexTester("5\n1/2\n3/4\n1/2\n1/4\n1/4", "4",
                                        "sample")
    suite.add(testcase)
    tests.append(suite)

    suite = testTemplate.testSuite("Sample Test Suite14")
    testcase = testTemplate.regexTester("3\n1/2\n3/4\n3/4", "4", "sample")
    suite.add(testcase)
    tests.append(suite)

    return tests
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1")
	testcase = testTemplate.regexTester("1" , "Yes" , "sample1")
	suite.add(testcase)
	testcase = testTemplate.regexTester("2" , "Yes" , "sample2")
	suite.add(testcase)
	testcase = testTemplate.regexTester("7" , "No" , "sample3")
	suite.add(testcase)
	testcase = testTemplate.regexTester("14" , "No" , "sample4")
	suite.add(testcase)
	testcase = testTemplate.regexTester("49" , "Yes" , "sample5")
	suite.add(testcase)
	testcase = testTemplate.regexTester("9" , "Yes" , "sample6")
	suite.add(testcase)
	testcase = testTemplate.regexTester("17" , "Yes" , "sample7")
	suite.add(testcase)
	testcase = testTemplate.regexTester("76" , "No" , "sample8")
	suite.add(testcase)
	testcase = testTemplate.regexTester("2888" , "Yes" , "sample9")
	suite.add(testcase)
	testcase = testTemplate.regexTester("27" , "No" , "sample10")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1")
	testcase = testTemplate.regexTester("11" , "13" , "sample1")
	suite.add(testcase)
	tests.append(suite)
	
	suite=testTemplate.testSuite("Sample Test Suite1.1")
	testcase = testTemplate.regexTester("111" , "136" , "sample1")
	suite.add(testcase)
	tests.append(suite)
	
	suite=testTemplate.testSuite("Sample Test Suite1.2")
	testcase = testTemplate.regexTester("112" , "139" , "sample1")
	suite.add(testcase)
	tests.append(suite)
	
	suite=testTemplate.testSuite("Sample Test Suite2")
	testcase = testTemplate.regexTester("16" , "23" , "sample2")
	suite.add(testcase)
	tests.append(suite)
	
	suite=testTemplate.testSuite("Sample Test Suite3")
	testcase = testTemplate.regexTester("123" , "164" , "sample3")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1",print_count=True)
	testcase = testTemplate.regexTester("1" , "1" , "sample1")
	suite.add(testcase)
	testcase = testTemplate.regexTester("2" , "5" , "sample2")
	suite.add(testcase)
	testcase = testTemplate.regexTester("3" , "13" , "sample3")
	suite.add(testcase)
	testcase = testTemplate.regexTester("4" , "27" , "sample4")
	suite.add(testcase)
	testcase = testTemplate.regexTester("5" , "48" , "sample5")
	suite.add(testcase)
	testcase = testTemplate.regexTester("6" , "78" , "sample6")
	suite.add(testcase)
	testcase = testTemplate.regexTester("7" , "118" , "sample7")
	suite.add(testcase)
	testcase = testTemplate.regexTester("8" , "170" , "sample8")
	suite.add(testcase)
	testcase = testTemplate.regexTester("9" , "235" , "sample9")
	suite.add(testcase)
	testcase = testTemplate.regexTester("10" , "315" , "sample10")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1",print_count=True)
	testcase = testTemplate.regexTester("CCCCC" , "5" , "sample1")
	suite.add(testcase)
	testcase = testTemplate.regexTester("ABABA" , "9" , "sample2")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1")
	testcase = testTemplate.regexTester("8 1\n0 0\n3 1\n5 0\n4 2\n3 4\n2 5\n1 5\n0 5" , "" , "sample")
	suite.add(testcase)
	testcase = testTemplate.regexTester("8 1\n0 5\n20 20\n23 11\n5 0\n4 2\n3 4\n2 5\n1 5" , "" , "sample")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1",footer="0")
	testcase = testTemplate.regexTester("2\n0\n900" , "IMPOSSIBLE" , "sample1")
	suite.add(testcase)
	testcase = testTemplate.regexTester("8\n1400\n1200\n1000\n800\n600\n400\n200\n0" , "POSSIBLE" , "sample2")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1",footer="0")
	testcase = testTemplate.regexTester("7 2 1 4 5 1 3 3" , "8" , "sample1")
	suite.add(testcase)
	testcase = testTemplate.regexTester("4 1000 1000 1000 1000" , "4000" , "sample2")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1" , footer="0")
	testcase = testTemplate.regexTester("5\ntoioynnkpheleaigshareconhtomesnlewx" , "theresnoplacelikehomeonasnowynightx" , "sample1")
	suite.add(testcase)
	testcase = testTemplate.regexTester("3\nttyohhieneesiaabss" , "thisistheeasyoneab" , "sample2")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
예제 #20
0
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1",print_count=True)
	testcase = testTemplate.regexTester("5\n5\n2\n7\n3\n8" , "YES" , "sample1")
	suite.add(testcase)
	testcase = testTemplate.regexTester("\n5\n5\n2\n7\n3\n4" , "NO" , "sample2")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
예제 #21
0
def getTests():
    tests = []

    suite = testTemplate.testSuite("Sample Test Suite1", print_count=True)
    testcase = testTemplate.regexTester("CCCCC", "5", "sample1")
    suite.add(testcase)
    testcase = testTemplate.regexTester("ABABA", "9", "sample2")
    suite.add(testcase)
    tests.append(suite)

    return tests
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1")
	testcase = testTemplate.regexTester("5\n2\n3" , "2" , "sample1")
	suite.add(testcase)
	testcase = testTemplate.regexTester("2\n3\n4" , "-1" , "sample2")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1")
	testcase = testTemplate.regexTester("5\n999 1 1 1 0" , "1001" , "sample1")
	suite.add(testcase)
	testcase = testTemplate.regexTester("5\n0 1 1 1 999" , "999" , "sample2")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
예제 #24
0
def getTests():
    tests = []

    suite = testTemplate.testSuite("Sample Test Suite1", print_count=True)
    testcase = testTemplate.regexTester("2\n1 1\n3 2", "5", "sample1")
    suite.add(testcase)
    testcase = testTemplate.regexTester("3\n2 3 2\n1 3 2", "15", "sample2")
    suite.add(testcase)
    tests.append(suite)

    return tests
예제 #25
0
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1",print_count=True)
	testcase = testTemplate.regexTester("a b ab " , "1" , "sample1")
	suite.add(testcase)
	testcase = testTemplate.regexTester("aa ab aaba " , "1" , "sample2")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
def getTests():
    tests = []

    suite = testTemplate.testSuite("Sample Test Suite1")
    testcase = testTemplate.regexTester("5\n2\n3", "2", "sample1")
    suite.add(testcase)
    testcase = testTemplate.regexTester("2\n3\n4", "-1", "sample2")
    suite.add(testcase)
    tests.append(suite)

    return tests
예제 #27
0
def getTests():
    tests = []

    suite = testTemplate.testSuite("Sample Test Suite1", footer="0")
    testcase = testTemplate.regexTester("2\n0\n900", "IMPOSSIBLE", "sample1")
    suite.add(testcase)
    testcase = testTemplate.regexTester(
        "8\n1400\n1200\n1000\n800\n600\n400\n200\n0", "POSSIBLE", "sample2")
    suite.add(testcase)
    tests.append(suite)

    return tests
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1",print_count=True)
	testcase = testTemplate.regexTester("2\n1 1\n3 2" , "5" , "sample1")
	suite.add(testcase)
	testcase = testTemplate.regexTester("3\n2 3 2\n1 3 2" , "15" , "sample2")
	suite.add(testcase)
	tests.append(suite)
	
	
	return tests
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1" , print_count = True)
	testcase = testTemplate.regexTester("a c 3 a b c" , "2" , "sample1")
	#suite.add(testcase)
	arr = ["hot","cog","dog","tot","hog","hop","pot","dot"]
	testcase = testTemplate.regexTester("hot dog "+str(len(arr))+(" ".join(arr)) , "5" , "sample2")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
예제 #30
0
def getTests():
    tests = []

    suite = testTemplate.testSuite("Sample Test Suite1")
    testcase = testTemplate.regexTester(
        "8 1\n0 0\n3 1\n5 0\n4 2\n3 4\n2 5\n1 5\n0 5", "", "sample")
    suite.add(testcase)
    testcase = testTemplate.regexTester(
        "8 1\n0 5\n20 20\n23 11\n5 0\n4 2\n3 4\n2 5\n1 5", "", "sample")
    suite.add(testcase)
    tests.append(suite)

    return tests
def getTests():
    tests = []

    suite = testTemplate.testSuite("Sample Test Suite1", print_count=True)
    testcase = testTemplate.regexTester("a c 3 a b c", "2", "sample1")
    #suite.add(testcase)
    arr = ["hot", "cog", "dog", "tot", "hog", "hop", "pot", "dot"]
    testcase = testTemplate.regexTester(
        "hot dog " + str(len(arr)) + (" ".join(arr)), "5", "sample2")
    suite.add(testcase)
    tests.append(suite)

    return tests
예제 #32
0
def getTests():
    tests = []

    suite = testTemplate.testSuite("Sample Test Suite1")
    testcase = testTemplate.regexTester("<<>>", "4", "sample1")
    suite.add(testcase)
    testcase = testTemplate.regexTester("><", "0", "sample2")
    suite.add(testcase)
    testcase = testTemplate.regexTester("<>>>", "2", "sample3")
    suite.add(testcase)
    tests.append(suite)

    return tests
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1" , print_count=True)
	testcase = testTemplate.regexTester("100" , "0" , "sample1")
	suite.add(testcase)
	testcase = testTemplate.regexTester("110" , "1" , "sample2")
	suite.add(testcase)
	testcase = testTemplate.regexTester("226" , "3" , "sample3")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1",print_count=True)
	testcase = testTemplate.regexTester("2 acmmcacamapapc mca pa" , "6" , "sample1")
	suite.add(testcase)
	testcase = testTemplate.regexTester("1 ccdedefcde cde" , "1" , "sample2")
	suite.add(testcase)
	testcase = testTemplate.regexTester("2 aabaab aa bb" , "0" , "sample3")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1")
	testcase = testTemplate.regexTester("3 3\n4 3 3" , "25.1327" , "sample1")
	suite.add(testcase)
	testcase = testTemplate.regexTester("1 24\n5" , "3.1416" , "sample2")
	suite.add(testcase)
	testcase = testTemplate.regexTester("10 5\n1 4 2 3 4 5 6 5 4 2" , "50.2655" , "sample3")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
예제 #36
0
def getTests():
    tests = []

    suite = testTemplate.testSuite("Sample Test Suite1", print_count=True)
    testcase = testTemplate.regexTester("5\n2\n3", "2", "sample1")
    suite.add(testcase)
    testcase = testTemplate.regexTester("2\n3\n4", "-1", "sample2")
    suite.add(testcase)
    testcase = testTemplate.regexTester("10\n7\n6", "6", "sample3")
    suite.add(testcase)
    tests.append(suite)

    return tests
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1")
	testcase = testTemplate.regexTester("<<>>" , "4" , "sample1")
	suite.add(testcase)
	testcase = testTemplate.regexTester("><" , "0" , "sample2")
	suite.add(testcase)
	testcase = testTemplate.regexTester("<>>>" , "2" , "sample3")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1",print_count=True)
	testcase = testTemplate.regexTester("5\n2\n3" , "2" , "sample1")
	suite.add(testcase)
	testcase = testTemplate.regexTester("2\n3\n4" , "-1" , "sample2")
	suite.add(testcase)
	testcase = testTemplate.regexTester("10\n7\n6" , "6" , "sample3")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1")
	testcase = testTemplate.regexTester("7 9\n0 6\n0 1 1\n0 2 1\n0 3 2\n0 4 3\n1 5 2\n2 6 4\n3 6 2\n4 6 4\n5 6 1" , "5" , "sample1")
	suite.add(testcase)
	testcase = testTemplate.regexTester("4 6\n0 2\n0 1 1\n1 2 1\n1 3 1\n3 2 1\n2 0 3\n3 0 2" , "-1" , "sample2")
	suite.add(testcase)
	testcase = testTemplate.regexTester("6 8\n0 1\n0 1 1\n0 2 2\n0 3 3\n2 5 3\n3 4 2\n4 1 1\n5 1 1\n3 0 1" , "6" , "sample3")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1",print_count=True,header="\n")
	testcase = testTemplate.regexTester("a aa bb cc def ghi" , "3" , "sample1")
	suite.add(testcase)
	testcase = testTemplate.regexTester("a a a a a bb bb bb bb c c" , "5" , "sample2")
	suite.add(testcase)
	testcase = testTemplate.regexTester("  \na a a a a" , "5" , "sample4")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
def getTests():
    tests = []

    suite = testTemplate.testSuite("Sample Test Suite1", print_count=True)
    testcase = testTemplate.regexTester("100", "0", "sample1")
    suite.add(testcase)
    testcase = testTemplate.regexTester("110", "1", "sample2")
    suite.add(testcase)
    testcase = testTemplate.regexTester("226", "3", "sample3")
    suite.add(testcase)
    tests.append(suite)

    return tests
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1")
	testcase = testTemplate.regexTester("9 3\n100 200 300 400 500 600 700 800 900" , "100 200 300 400 500 / 600 700 / 800 900" , "sample1")
	suite.add(testcase)
	testcase = testTemplate.regexTester("5 4\n100 100 100 100 100" , "100 / 100 / 100 / 100 100" , "sample2")
	suite.add(testcase)
	testcase = testTemplate.regexTester("10 4 \n100 200 400 300 500 100 200 700 400 200 " , "100 200 400 / 300 500 100 / 200 700 / 400 200" , "from comment")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1")
	testcase = testTemplate.regexTester("2" , "2" , "sample")
	suite.add(testcase)
	testcase = testTemplate.regexTester("3" , "4" , "sample")
	suite.add(testcase)
	testcase = testTemplate.regexTester("1000000000000000000000000000000" , "1999999999999999999999999999998" , "long sample")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
예제 #44
0
def getTests():
    tests = []

    suite = testTemplate.testSuite("Sample Test Suite1")
    testcase = testTemplate.regexTester("6 2 3\n2 2 2 2 1 1", "2", "sample")
    suite.add(testcase)
    tests.append(suite)

    suite = testTemplate.testSuite("Sample Test Suite2")
    testcase = testTemplate.regexTester("2 5 1\n5 8", "9", "sample")
    suite.add(testcase)
    tests.append(suite)

    return tests
def getTests():
    tests = []

    suite = testTemplate.testSuite("Sample Test Suite1", print_count=True)
    testcase = testTemplate.regexTester("2\nacm\nibm",
                                        "The door cannot be opened.",
                                        "sample1")
    suite.add(testcase)
    testcase = testTemplate.regexTester("3\nacm\nmalform\nmouse",
                                        "Ordering is possible.", "sample2")
    suite.add(testcase)
    testcase = testTemplate.regexTester("2\nok\nok",
                                        "The door cannot be opened.",
                                        "sample3")
    suite.add(testcase)
    testcase = testTemplate.regexTester("2 \nabcd \ndcba ",
                                        "Ordering is possible.", "sample4")
    suite.add(testcase)
    testcase = testTemplate.regexTester("3 \naaa \nbbb \nccc ",
                                        "The door cannot be opened.",
                                        "sample5")
    suite.add(testcase)
    testcase = testTemplate.regexTester("4 \nboko \noring \nkebo \ngoblok ",
                                        "Ordering is possible.", "sample6")
    suite.add(testcase)
    testcase = testTemplate.regexTester("4 \nmasti \nishq \nbc \ncb ",
                                        "The door cannot be opened.",
                                        "sample7")
    suite.add(testcase)
    testcase = testTemplate.regexTester("1 \nboko", "Ordering is possible.",
                                        "sample7")
    suite.add(testcase)
    tests.append(suite)

    return tests
예제 #46
0
def getTests():
    tests = []

    suite = testTemplate.testSuite("Sample Test Suite1")
    testcase = testTemplate.regexTester("4 7\n20 15 10 17", "15", "sample")
    suite.add(testcase)
    tests.append(suite)

    suite = testTemplate.testSuite("Sample Test Suite2")
    testcase = testTemplate.regexTester("5 20\n4 42 40 26 46", "36", "sample")
    suite.add(testcase)
    tests.append(suite)

    return tests
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1",print_count=True)
	testcase = testTemplate.regexTester("5\nD B\nD C\nD A\nB A\nC A" , "Case 1: 1 D,A " , "sample1")
	suite.add(testcase)
	testcase = testTemplate.regexTester("6\nD B\nD C\nD A\nC B\nB A\nC A" , "Case 2: 3 C,A D,A D,B " , "sample2")
	suite.add(testcase)
	testcase = testTemplate.regexTester("1\nA B" , "Case 3: 0 " , "sample3")
	suite.add(testcase)
	tests.append(suite)
	
	suite=testTemplate.testSuite("string Test Suite1",print_count=True)
	testcase = testTemplate.regexTester("5\nDa Ba\nDa Ca\nDa Aa\nBa Aa\nCa Aa" , "Case 1: 1 Da,Aa " , "sample1")
	suite.add(testcase)
	testcase = testTemplate.regexTester("6\nD1 B1\nD1 C1\nD1 A1\nC1 B1\nB1 A1\nC1 A1" , "Case 2: 3 C1,A1 D1,A1 D1,B1 " , "sample2")
	suite.add(testcase)
	testcase = testTemplate.regexTester("1\nA# B#" , "Case 3: 0 " , "sample3")
	suite.add(testcase)
	tests.append(suite)
	
	suite=testTemplate.testSuite("custom Test Suite1",print_count=True)
	testcase = testTemplate.regexTester("6\nA B\nA C\nA D\nB C\nB D\nC D" , "Case 1: 3 A,C A,D B,D " , "custom1")
	suite.add(testcase)
	testcase = testTemplate.regexTester("6\nA B\nA C\nA D\nB C\nB D\nD C" , "Case 2: 3 A,C A,D B,C " , "custom2")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1")
	testcase = testTemplate.regexTester("6\n5 5 7 10 14 15\n3\n2 11\n3 12\n4 4" , "9\n7\n0" , "sample")
	suite.add(testcase)
	tests.append(suite)
	
	suite=testTemplate.testSuite("Sample Test Suite2")
	testcase = testTemplate.regexTester("7\n2 3 5 7 11 4 8\n2\n8 10\n2 123" , "0\n7" , "sample")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1")
	testcase = testTemplate.regexTester("4 7\n20 15 10 17" , "15" , "sample")
	suite.add(testcase)
	tests.append(suite)
	
	suite=testTemplate.testSuite("Sample Test Suite2")
	testcase = testTemplate.regexTester("5 20\n4 42 40 26 46" , "36" , "sample")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
예제 #50
0
def getTests():
    tests = []

    suite = testTemplate.testSuite("Sample Test Suite1")
    testcase = testTemplate.regexTester("3 3\n4 3 3", "25.1327", "sample1")
    suite.add(testcase)
    testcase = testTemplate.regexTester("1 24\n5", "3.1416", "sample2")
    suite.add(testcase)
    testcase = testTemplate.regexTester("10 5\n1 4 2 3 4 5 6 5 4 2", "50.2655",
                                        "sample3")
    suite.add(testcase)
    tests.append(suite)

    return tests
def getTests():
	tests = []
	
	suite=testTemplate.testSuite("Sample Test Suite1")
	testcase = testTemplate.regexTester("6 2 3\n2 2 2 2 1 1" , "2" , "sample")
	suite.add(testcase)
	tests.append(suite)
	
	suite=testTemplate.testSuite("Sample Test Suite2")
	testcase = testTemplate.regexTester("2 5 1\n5 8" , "9" , "sample")
	suite.add(testcase)
	tests.append(suite)
	
	return tests
예제 #52
0
def getTests():
    tests = []

    suite = testTemplate.testSuite("Sample Test Suite1", print_count=True)
    testcase = testTemplate.regexTester("2 acmmcacamapapc mca pa", "6",
                                        "sample1")
    suite.add(testcase)
    testcase = testTemplate.regexTester("1 ccdedefcde cde", "1", "sample2")
    suite.add(testcase)
    testcase = testTemplate.regexTester("2 aabaab aa bb", "0", "sample3")
    suite.add(testcase)
    tests.append(suite)

    return tests
예제 #53
0
def getTests():
    tests = []

    suite = testTemplate.testSuite("Sample Test Suite1", footer="0")
    testcase = testTemplate.regexTester(
        "5\ntoioynnkpheleaigshareconhtomesnlewx",
        "theresnoplacelikehomeonasnowynightx", "sample1")
    suite.add(testcase)
    testcase = testTemplate.regexTester("3\nttyohhieneesiaabss",
                                        "thisistheeasyoneab", "sample2")
    suite.add(testcase)
    tests.append(suite)

    return tests