def test_formula(self): formula = '(10*A-700-B)-D' self.assertEqual( tools.EvalUserInput(formula, 100, CurrentFont().info).result, 6710)
def test_verticalMetricsVarsWithZones(self): self.assertEqual( tools.EvalUserInput('A+B', 100, CurrentFont().info).result, 790)
def test_verticalMetricsVars(self): self.assertEqual( tools.EvalUserInput('a', 100, CurrentFont().info).result, 750)
def test_adding(self): self.assertEqual( tools.EvalUserInput('+10', 100, CurrentFont().info).result, 110)
def test_inputFloat(self): self.assertEqual( tools.EvalUserInput('10.1', 100, CurrentFont().info).result, 10.1)
def test_inputInteger(self): self.assertEqual( tools.EvalUserInput('10', 100, CurrentFont().info).result, 10)