public void Complicated_ShouldCalculate(string input, double expected) { RegexMath.Evaluate(input).ShouldBe(expected); }
public void Factorial_ShouldCalculate() { var input = "5!"; RegexMath.Evaluate(input).ShouldBe(120); }
public void Sqrt_ShouldCalculate(string input, double expected) { RoughEqual(expected, out double low, out double high); RegexMath.Evaluate(input).ShouldBeInRange(low, high); }