MCPcopy Create free account
hub / github.com/DegenSugarBoo/OpenBook / assert_close

Function assert_close

tests/unit/ui_tests.rs:7–12  ·  view source on GitHub ↗
(actual: f64, expected: f64)

Source from the content-addressed store, hash-verified

5use std::sync::Arc;
6
7fn assert_close(actual: f64, expected: f64) {
8 assert!(
9 (actual - expected).abs() <= 1e-9,
10 "expected {expected}, got {actual}"
11 );
12}
13
14#[test]
15fn build_tape_rows_returns_newest_first() {

Calls

no outgoing calls

Tested by

no test coverage detected