Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase test coverage. #27

Open
korsbo opened this issue Jul 17, 2018 · 1 comment
Open

Increase test coverage. #27

korsbo opened this issue Jul 17, 2018 · 1 comment

Comments

@korsbo
Copy link
Owner

korsbo commented Jul 17, 2018

We really should be testing each and every feature of Latexify and currently we are not.

Test generation is made easy by a macro that we supply:

using Latexify
@Latexify.generate_test latexify("x/y")

generates a test and puts it in your clipboard to be pasted:

@test latexify("x/y") == 
raw"$\frac{x}{y}$"

One just have to make sure that the test does actually do what was expected. For markdown, one must also replace the raw with Markdown.MD and get the first newline right.

@korsbo
Copy link
Owner Author

korsbo commented Oct 20, 2020

This has become increasingly relevant after I stopped testing using ParameterizedFunctions and DiffEqBiological in #117.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant