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

Function fib_classic_iteration_for

tests/test_dp.rs:60–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58
59#[test]
60fn fib_classic_iteration_for() {
61 let values = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144];
62 for (i, expect) in values.iter().enumerate() {
63 assert_eq!(*expect, dp::fib::fib_classic_iteration_for(i));
64 }
65}
66
67#[test]
68fn fib_classic_recursive_c() {

Callers

nothing calls this directly

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected