def test_olaalphanumericoespaco(self): matrix = [ ['o', '!'], ['l', 'e'], ['a', 'y'], ] self.assertEqual(main(matrix), 'ola ey')
def test_main_2(self): words = [ "leet", "code", "apple", ] self.assertEqual(main("leetcodeapple", words), True)
def test_olavey(self): matrix = [ ['o', 'v'], ['l', 'e'], ['a', 'y'], ] self.assertEqual(main(matrix), 'olavey')
def test_case_1(self): obj = { "house": [7, 11], "apple_tree": 5, "orange_tree": 15, "apples": [-2, 2, 1], "oranges": [5, -6], } self.assertEqual(main(obj), [1, 1])
def test_tamanho_palavra_8(self): self.assertEqual(main("aabbbbaaa"), "bbbb")
#!/usr/bin/env python from dojo import main main()
def test_one_one(self): self.assertEqual(main(1, 1), [[1]])
def test_sala_two_one(self): self.assertEqual( dojo.main([(0, 0), (0, 2), (1, 0), (1, 2), (1, 1)]), 2 )
def test_array_length_1(self): self.assertEquals(main([1], 1), [[1]])
def test_one_three(self): self.assertEqual(main(1, 3), [[1, 2, 3]])
def test_two_one(self): self.assertEqual(main(2, 1), [ [1], [2] ])
def test_main(self): self.assertDictEqual(main('hello'), {'l': 2, 'e': 1, 'h': 1})
def test_sala_one_one(self): self.assertEqual( dojo.main([(0, 0), (0, 1), (1, 0), (1, 1), (1, 1)]), 1 )
def test_sala_two_two_size_1half(self): self.assertEqual( dojo.main([(0, 0), (2, 0), (0, 1), (1, 1), (2, 1)]), 1 )
def test_sala_two_two_size_2(self): self.assertEqual( dojo.main([(0, 0), (0, 2), (2, 0), (2, 2), (1, 2)]), 2 )
def test_sala_two_two(self): self.assertEqual( dojo.main([(0, 0), (0, 2), (2, 0), (2, 2), (1, 1)]), 4 )
def test_main_2(self): self.assertEqual(main([3,4,5,6],2,9), 3)
def test_main_4(self): self.assertEqual(main([3,10,2,9],1,7), "Bon Appetit")
def test_one_two(self): self.assertEqual(main(1, 2), [[1, 2]])
def test_main3(self): self.assertDictEqual(main('aabbbccde'), {'b': 3, 'a': 2, 'c': 2})
def test_main(self): self.assertEqual(["on", "off", "off"], main(3))
def test_array_length_2_1(self): self.assertEquals(main([2, 3], 5), [[2, 3]])
def test_true_2(self): self.assertEqual(main(self.matriz, 0), [[1, 2], [3, 1]])
def test_two_one(self): self.assertEqual(main(2, 1), [[1], [2]])
def test_order_1(self): self.assertEqual(main(self.matriz, 1), [[3, 1], [1, 2]])
def test_array_length_2(self): self.assertEquals(main([2, 3], 2), [[2]])
def test_true_3(self): matriz = [[5, 2], [1, 4]] self.assertEqual(main(matriz, 0), [[1, 4], [5, 2]])
def test_ps(self): self.assertEqual(main(["PS"]), ["PS"])
def test_tamanho_palavra_4(self): self.assertEqual(main("bbb"), "bbb")
def test_4ps(self): self.assertEqual(main(["PS", "PS", "PS", "PS"]), [ "PS", "PS", "B", "PS", "PS", "B"])
def test_tamanho_palavra_2(self): self.assertEqual(main("aa"), "aa")
def test_ps_pe_ps(self): self.assertEqual(main(["PS", "PE", "PS"]), ["PS", "PE", "B", "PS"])
def test_main(self): self.assertEqual(main([3,4,5,6],1,9), 2)
def test_2pe(self): self.assertEqual(main(["PE", "PE"]), ["PE", "B", "PE", "B"])
def test_main_3(self): self.assertEqual(main([3,10,2,9],1,12), 5)
"""Module to run the game.""" # Imports from dojo import main # Run the game main()
def test_main_5(self): self.assertEqual(main([3,10,4,9],1,8), "Bon Appetit")
def test_get_result3(self): self.assertEquals(main(0, 2, 8, 1), True)
def test_main2(self): self.assertDictEqual(main('abcc'), {'c': 2, 'a': 1, 'b': 1})
def test_main2(self): self.assertEqual(main([1, 1, 3, 4, 4, 3, 4], 2, 3), 2.65625)
def test_get_result2(self): self.assertEquals(main(1, 3, 8, 1), False)
def test_array_length_2_3(self): self.assertEquals(main([2, 3], 4), [[2, 2]])
def test_main(self): self.assertEqual(main([1,2,3], 3, 1), 2.875)
def test_main3(self): self.assertEqual(main([1, 1, 1, 1, 1, 1, 1, 1, 1], 3, 4), 1.9000000000000012)