add more unit tests

This commit is contained in:
Vinzenz Schroeter 2024-05-17 21:02:50 +02:00
parent 8426698b9f
commit c61c267b02
8 changed files with 167 additions and 27 deletions

View file

@ -4,8 +4,8 @@ use std::time::Duration;
use clap::Parser;
use servicepoint2::{
Command, CompressionCode, Connection, Origin, PixelGrid, PIXEL_HEIGHT,
PIXEL_WIDTH,
Command, CompressionCode, Connection, Origin, PIXEL_HEIGHT, PIXEL_WIDTH,
PixelGrid,
};
#[derive(Parser, Debug)]
@ -29,7 +29,7 @@ fn main() {
connection
.send(
Command::BitmapLinearWin(
Origin::top_left(),
Origin(0, 0),
pixels.clone(),
CompressionCode::Lzma,
)