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

Function fib_classic_iteration_for_c

tests/test_dp.rs:76–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74
75#[test]
76fn fib_classic_iteration_for_c() {
77 let values = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144];
78 for (i, expect) in values.iter().enumerate() {
79 assert_eq!(*expect, unsafe { dp::fib::fib_classic_iteration_for_c(i) });
80 }
81}

Callers

nothing calls this directly

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected