fixed bug with color layering issue
CI / Lint and Test (pull_request) Successful in 44s
CI / Version Check (pull_request) Failing after 3s

This commit is contained in:
2026-03-31 12:18:53 +02:00
parent 69d0269270
commit 7c8ecda29a
11 changed files with 126 additions and 51 deletions
+2 -8
View File
@@ -88,10 +88,7 @@ mod tests {
fn parse_simple_stitches() {
let data = [0x0A, 0x14, 0x05, 0x03];
let cmds = parse(&data).unwrap();
assert!(matches!(
cmds[0],
StitchCommand::Stitch { dx: 10, dy: 20 }
));
assert!(matches!(cmds[0], StitchCommand::Stitch { dx: 10, dy: 20 }));
assert!(matches!(cmds[1], StitchCommand::Stitch { dx: 5, dy: 3 }));
assert!(matches!(cmds[2], StitchCommand::End));
}
@@ -120,10 +117,7 @@ mod tests {
fn parse_jump() {
let data = [0x80, 0x04, 0x0A, 0x14];
let cmds = parse(&data).unwrap();
assert!(matches!(
cmds[0],
StitchCommand::Jump { dx: 10, dy: 20 }
));
assert!(matches!(cmds[0], StitchCommand::Jump { dx: 10, dy: 20 }));
}
#[test]