Skip to content

Commit

Permalink
reduce tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
csangara committed Oct 3, 2024
1 parent 6fbfe87 commit d9c5f76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions unit-test/test_run_dataset.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ for (method in methods){
"proportions_", method, "_test_sp_data"),
sep="\t", header=TRUE)
expect_equal(rowSums(output_props), rep(1, 16), tolerance=1e-6)
expect_equal(sum(output_props$L23IT), sum(expected_props$L23IT), tolerance=1e-3)
expect_equal(output_props[15,1:10], expected_props[15,1:10], tolerance=1e-3)
expect_equal(sum(output_props$L23IT), sum(expected_props$L23IT), tolerance=1e-2)
expect_equal(output_props[15,1:10], expected_props[15,1:10], tolerance=1e-2)
}

# Check 3
Expand All @@ -54,7 +54,7 @@ for (method in methods){
"metrics_", method, "_test_sp_data"),
sep=" ", header=TRUE)

expect_equal(output_metrics, expected_metrics, tolerance=1e-3)
expect_equal(output_metrics, expected_metrics, tolerance=1e-2)
}

}
Expand Down

0 comments on commit d9c5f76

Please sign in to comment.