fixed bug with color layering issue
This commit is contained in:
+2
-8
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user