MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / TEST_BEGIN

Function TEST_BEGIN

deps/jemalloc/test/unit/math.c:367–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365 }
366}
367TEST_END
368
369TEST_BEGIN(test_pt_gamma_scale) {
370 double shape = 1.0;
371 double ln_gamma_shape = ln_gamma(shape);
372
373 assert_true(double_eq_rel(
374 pt_gamma(0.5, shape, 1.0, ln_gamma_shape) * 10.0,
375 pt_gamma(0.5, shape, 10.0, ln_gamma_shape), MAX_REL_ERR,
376 MAX_ABS_ERR),
377 "Scale should be trivially equivalent to external multiplication");
378}
379TEST_END
380
381int

Callers

nothing calls this directly

Calls 3

double_eq_relFunction · 0.70
ln_gammaFunction · 0.50
pt_gammaFunction · 0.50

Tested by

no test coverage detected