66class EvaluateDivisionTestCase (unittest .TestCase ):
77 def test_1 (self ):
88 """should return [6.00000,0.50000,-1.00000,1.00000,-1.00000] from equations = [["a","b"],["b","c"]],
9- values = [2.0,3.0], queries = [["a","c"],["b","a"],["a","e"],["a","a"],["x","x"]]"""
9+ values = [2.0,3.0], queries = [["a","c"],["b","a"],["a","e"],["a","a"],["x","x"]]
10+ """
1011 expected = [6.00000 , 0.50000 , - 1.00000 , 1.00000 , - 1.00000 ]
1112 equations = [["a" , "b" ], ["b" , "c" ]]
1213 values = [2.0 , 3.0 ]
@@ -16,7 +17,8 @@ def test_1(self):
1617
1718 def test_2 (self ):
1819 """should return [3.75000,0.40000,5.00000,0.20000] from equations = [["a","b"],["b","c"],["bc","cd"]],
19- values = [1.5,2.5,5.0], queries = [["a","c"],["c","b"],["bc","cd"],["cd","bc"]]"""
20+ values = [1.5,2.5,5.0], queries = [["a","c"],["c","b"],["bc","cd"],["cd","bc"]]
21+ """
2022 expected = [3.75000 , 0.40000 , 5.00000 , 0.20000 ]
2123 equations = [["a" , "b" ], ["b" , "c" ], ["bc" , "cd" ]]
2224 values = [1.5 , 2.5 , 5.0 ]
0 commit comments