MCPcopy Create free account
hub / github.com/Axect/Peroxide / test_AD2_constructor

Function test_AD2_constructor

tests/jet_tests.rs:119–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117#[test]
118#[allow(non_snake_case)]
119fn test_AD2_constructor() {
120 let j = AD2(5.0, 3.0, 4.0);
121 assert_close(j.value(), 5.0);
122 assert_close(j.dx(), 3.0);
123 assert_close(j.ddx(), 4.0);
124}
125
126#[test]
127fn test_derivative_accessor() {

Callers

nothing calls this directly

Calls 5

AD2Function · 0.85
dxMethod · 0.80
ddxMethod · 0.80
assert_closeFunction · 0.70
valueMethod · 0.45

Tested by

no test coverage detected