public void TestSymPy(string expression, string expectedToBeIn, bool contains = true) { var ent = MathS.FromString(expression); if (contains) { Assert.Contains(expectedToBeIn, MathS.ToSympyCode(ent)); } else { Assert.DoesNotContain(expectedToBeIn, MathS.ToSympyCode(ent)); } }
public void SympySyntax() { Entity expr = "x + 4 + e"; Assert.True(MathS.ToSympyCode(expr).Length > 10); }