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

Function fib_classic_recursive

tests/test_dp.rs:36–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34
35#[test]
36fn fib_classic_recursive() {
37 let values = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144];
38 for (i, expect) in values.iter().enumerate() {
39 assert_eq!(*expect, dp::fib::fib_classic_recursive(i));
40 }
41}
42
43#[test]
44fn fib_cache_result() {

Callers

nothing calls this directly

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected