From d78a50fefcb2687a94c5a9c7d15584372d332b7c Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Wed, 27 Jan 2021 22:17:01 -0600 Subject: [PATCH] chore: fix tests and simplify CI build --- .drone.yml | 5 ----- src/instruction.rs | 6 +++--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index c6666e2..2dae089 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,11 +4,6 @@ type: docker name: default steps: -- name: cargo check - image: rust:1.49 - commands: - - cargo check --verbose --all - - name: cargo test image: rust:1.49 commands: diff --git a/src/instruction.rs b/src/instruction.rs index 05f4ea2..d684bd0 100644 --- a/src/instruction.rs +++ b/src/instruction.rs @@ -2162,15 +2162,15 @@ mod tests { #[test] fn cycle_add_works() { - let lhs: Cycles = Cycles::new(0); - let rhs: Cycles = Cycles::new(0); + let lhs: Cycles = Cycles::new(5); + let rhs: Cycles = Cycles::new(4); assert_eq!(Cycles::new(9), rhs + lhs); } #[test] fn cycle_add_assign_works() { - let mut cycles: Cycles = Cycles::new(0); + let mut cycles: Cycles = Cycles::new(5); cycles += 5; assert_eq!(Cycles::new(10), cycles);