-
Notifications
You must be signed in to change notification settings - Fork 1
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
Implement fill for circles and rectangles #2
base: master
Are you sure you want to change the base?
Changes from all commits
71c0047
3c5f821
5e1ce9f
3cea9e0
8a98791
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,11 @@ A ratatui widget for drawing a plotters chart. | |
<img src="examples/mandelbrot.png" width=200px /> | ||
<img src="examples/normal-dist.png" width=200px /> | ||
<img src="examples/3d-plot.png" width=200px /> | ||
|
||
## Tests | ||
|
||
When running tests please note the following constraints. | ||
|
||
The tests *require* human interaction. An image is displayed in the upper section of the terminal, with a yes/no question in the lower section. Inspect the image, and respond to the question with 'y' or 'n' as appropriate. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Umm, these are called examples not tests. Tests should be runnable in CI. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You may want to look at how ratatui tests its own widgets, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I humbly disagree - these are tests not examples. I didn't like them needing a human to perform the pass/fail assessment, but I found them more helpful than having no tests :) Thank you for the pointer to Ratatui's test capabilities. I'll rework and resubmit at some point. |
||
|
||
Because the tests require a `ratatui` display loop, they **MUST** be run single threaded `--test-threads=1`, e.g. `cargo test -- --test-threads=1`. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,3 +52,7 @@ pub fn main_boilerplate( | |
|
||
Ok(()) | ||
} | ||
|
||
#[warn(dead_code)] | ||
fn main() {} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why change this?