MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_cost_add

Function test_cost_add

atomic-core/src/change/provenance/tests.rs:159–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157
158#[test]
159fn test_cost_add() {
160 let c1 = Cost::from_usd(0.01);
161 let c2 = Cost::from_usd(0.02);
162 let total = c1.add(&c2);
163 assert!((total.usd - 0.03).abs() < 0.0001);
164}
165
166#[test]
167fn test_cost_display() {

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected