Closed roSievers closed 7 years ago
Ah yeah, it would be nice to have these run as real tests. I'll probably continue to break things as I add things on to the API and decide the direction to go forward.
Well, it seems that cargo test
at least compiles them. So in a way they are already tests.
I guess you forgot to update the draw example when you rewrote the .frame() function to take one closure as a parameter. With this change
cargo test
won't produce any errors.One caveat is, that you probably intend this example to be easier. Taking an empty environment and passing it on to draw isn't exactly straightforward thing to to. But I'm not sure how you could improve this. I suggest that you still merge this to get the tests to pass in the meantime.