Skip to content

Commit

Permalink
Add testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernauer committed Jun 11, 2024
1 parent 0e2b06a commit ff7eaf9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions breakwater/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ async fn test_setting_pixel(
"PX 0 0 000000\nPX 0 0 313233\n"
)]
#[case("PB \0*\0____PX 32 42\n", "PX 32 42 5f5f5f\n")]
// Also test that there can be newlines in between
#[case(
"PB\0\0\0\0\0\0\0\0\nPX 0 0\nPB\0\0\0\01234\n\n\nPX 0 0\n",
"PX 0 0 000000\nPX 0 0 313233\n"
)]
#[tokio::test]
async fn test_binary_commands(
#[case] input: &str,
Expand Down

0 comments on commit ff7eaf9

Please sign in to comment.