示例#1
0
文件: tests.py 项目: erichideki/dojo
	def test_um_item(self):
		self.assertEquals(program.calcular_qtd_sacolas(2, ["leite"]), 1)
示例#2
0
文件: tests.py 项目: erichideki/dojo
	def test_cinco_leites_tres_ovos_um_item(self):
		self.assertEquals(program.calcular_qtd_sacolas(1, ["leite", "leite", "leite", "leite",
														   "leite", "ovo", "ovo", "ovo"]), 8)
示例#3
0
文件: tests.py 项目: erichideki/dojo
	def test_zero_itens(self):
		self.assertEquals(program.calcular_qtd_sacolas(2, []), 0)
示例#4
0
文件: tests.py 项目: erichideki/dojo
	def test_tres_itens_dois_iguais_um_diferentes(self):
		self.assertEquals(program.calcular_qtd_sacolas(2, ["leite", "leite", "ovo"]), 2)
		self.assertEquals(program.calcular_qtd_sacolas(2, ["leite", "ovo", "leite"]), 2)
示例#5
0
文件: tests.py 项目: erichideki/dojo
	def test_tres_itens_iguais(self):
		self.assertEquals(program.calcular_qtd_sacolas(2, ["leite", "leite", "leite"]), 2)
示例#6
0
文件: tests.py 项目: tcoliveira/dojo
 def test_um_item(self):
     self.assertEquals(program.calcular_qtd_sacolas(2, ["leite"]), 1)
示例#7
0
文件: tests.py 项目: tcoliveira/dojo
 def test_zero_itens(self):
     self.assertEquals(program.calcular_qtd_sacolas(2, []), 0)
示例#8
0
文件: tests.py 项目: tcoliveira/dojo
 def test_cinco_leites_tres_ovos_um_item(self):
     self.assertEquals(
         program.calcular_qtd_sacolas(1, [
             "leite", "leite", "leite", "leite", "leite", "ovo", "ovo",
             "ovo"
         ]), 8)
示例#9
0
文件: tests.py 项目: tcoliveira/dojo
 def test_tres_itens_iguais(self):
     self.assertEquals(
         program.calcular_qtd_sacolas(2, ["leite", "leite", "leite"]), 2)
示例#10
0
文件: tests.py 项目: tcoliveira/dojo
 def test_tres_itens_dois_iguais_um_diferentes(self):
     self.assertEquals(
         program.calcular_qtd_sacolas(2, ["leite", "leite", "ovo"]), 2)
     self.assertEquals(
         program.calcular_qtd_sacolas(2, ["leite", "ovo", "leite"]), 2)