Fix warnings and split Scope (#1902)

This commit is contained in:
Jonathan Turner
2020-05-27 16:50:26 +12:00
committed by GitHub
parent 9567c1f564
commit fa812849b8
29 changed files with 141 additions and 148 deletions

View File

@ -24,6 +24,6 @@ fn to_row() {
"#
));
assert!(actual.out.contains("5"));
assert!(actual.out.contains('5'));
})
}

View File

@ -63,6 +63,8 @@ fn outputs_zero_with_no_input() {
}
#[test]
#[allow(clippy::unreadable_literal)]
#[allow(clippy::float_cmp)]
fn compute_sum_of_individual_row() -> Result<(), String> {
let answers_for_columns = [
("cpu", 88.257434),
@ -82,6 +84,8 @@ fn compute_sum_of_individual_row() -> Result<(), String> {
}
#[test]
#[allow(clippy::unreadable_literal)]
#[allow(clippy::float_cmp)]
fn compute_sum_of_table() -> Result<(), String> {
let answers_for_columns = [
("cpu", 88.257434),