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

Function fib_classic_iteration_loop

tests/test_dp.rs:52–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50
51#[test]
52fn fib_classic_iteration_loop() {
53 let values = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144];
54 for (i, expect) in values.iter().enumerate() {
55 assert_eq!(*expect, dp::fib::fib_classic_iteration_loop(i));
56 }
57}
58
59#[test]
60fn fib_classic_iteration_for() {

Callers

nothing calls this directly

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected