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

Add svg backend tests #68

Open
fcooper8472 opened this issue Jul 10, 2018 · 0 comments
Open

Add svg backend tests #68

fcooper8472 opened this issue Jul 10, 2018 · 0 comments

Comments

@fcooper8472
Copy link
Collaborator

We ought to unit test the svg backend methods. Simple things will be very straightforward, like

  SECTION("finalise produces correct string") {
    backend.finalise();
    CHECK(out.str() == "</svg>\n");
  }

For functions taking arguments, such as circle, we can check that specific parameter values end up as expected in the resulting string.

fcooper8472 pushed a commit to fcooper8472/trase that referenced this issue Jul 10, 2018
fcooper8472 pushed a commit to fcooper8472/trase that referenced this issue Jul 10, 2018
fcooper8472 pushed a commit to fcooper8472/trase that referenced this issue Jul 10, 2018
fcooper8472 pushed a commit to fcooper8472/trase that referenced this issue Jul 10, 2018
fcooper8472 pushed a commit to fcooper8472/trase that referenced this issue Jul 10, 2018
fcooper8472 pushed a commit to fcooper8472/trase that referenced this issue Jul 11, 2018
martinjrobins pushed a commit that referenced this issue Jul 11, 2018
* #68 Initial work on testing svg backend

* #68 Compare strings ignoring all whitespace

Make the test more robust

* Add missing header

* #68 Move rect method to cpp and test

* #68 Implement rounded rectangle and test it

* #68 Change to testing substrings

* #68 Move circle method to cpp and test it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant