MCPcopy Index your code
hub / github.com/douchuan/algorithm / fib_cache_result

Function fib_cache_result

tests/test_dp.rs:44–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42
43#[test]
44fn fib_cache_result() {
45 let values = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144];
46 for (i, expect) in values.iter().enumerate() {
47 assert_eq!(*expect, dp::fib::fib_cache_result(i));
48 }
49}
50
51#[test]
52fn fib_classic_iteration_loop() {

Callers

nothing calls this directly

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected