MCPcopy Create free account
hub / github.com/douchuan/algorithm / fib_classic_recursive_c

Function fib_classic_recursive_c

tests/test_dp.rs:68–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66
67#[test]
68fn fib_classic_recursive_c() {
69 let values = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144];
70 for (i, expect) in values.iter().enumerate() {
71 assert_eq!(*expect, unsafe { dp::fib::fib_cache_result_c(i) });
72 }
73}
74
75#[test]
76fn fib_classic_iteration_for_c() {

Callers

nothing calls this directly

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected