def test_round(self):

        yield self.do_func("round"), "'0.99999'", 1
        yield self.do_func("round"), "0", 0
        yield self.do_func("round"), "0.49", 0
        yield self.do_func("round"), "0.5", 1
        yield self.do_func("round"), "0.51", 1
        yield self.do_func("round"), "-0.49", 0
        yield self.do_func("round"), "-0.5", 0
        yield self.do_func("round"), "-0.51", -1
        yield self.do_expr, "Math.round(Infinity) == Infinity", True
        yield self.do_expr, "Math.round(-Infinity) == -Infinity", True
Test that the round() function works properly.
dataset/ETHPy150Open mozilla/app-validator/tests/js/test_math.py/TestMathFuncs.test_round