chore: fix tests and simplify CI build
This commit is contained in:
parent
b053260c8b
commit
d78a50fefc
|
@ -4,11 +4,6 @@ type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: cargo check
|
|
||||||
image: rust:1.49
|
|
||||||
commands:
|
|
||||||
- cargo check --verbose --all
|
|
||||||
|
|
||||||
- name: cargo test
|
- name: cargo test
|
||||||
image: rust:1.49
|
image: rust:1.49
|
||||||
commands:
|
commands:
|
||||||
|
|
|
@ -2162,15 +2162,15 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn cycle_add_works() {
|
fn cycle_add_works() {
|
||||||
let lhs: Cycles = Cycles::new(0);
|
let lhs: Cycles = Cycles::new(5);
|
||||||
let rhs: Cycles = Cycles::new(0);
|
let rhs: Cycles = Cycles::new(4);
|
||||||
|
|
||||||
assert_eq!(Cycles::new(9), rhs + lhs);
|
assert_eq!(Cycles::new(9), rhs + lhs);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn cycle_add_assign_works() {
|
fn cycle_add_assign_works() {
|
||||||
let mut cycles: Cycles = Cycles::new(0);
|
let mut cycles: Cycles = Cycles::new(5);
|
||||||
cycles += 5;
|
cycles += 5;
|
||||||
|
|
||||||
assert_eq!(Cycles::new(10), cycles);
|
assert_eq!(Cycles::new(10), cycles);
|
||||||
|
|
Loading…
Reference in New Issue