Registry / Library

library · v0.1.1
Test Streak
Find the longest consecutive run of failures in test results encoded as zero for pass and one for failure.
Use Test Streak
use vendor::test_streak::test_streak;
Run the example
nest demo test_streak@0.1.1
blyxc native-run test_streak-demo/main.blyx
Example source and expected output
use vendor::test_streak::test_streak;
fn main() {
println!(test_streak([1,0,1,1,0]));
}
Expected output
2
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | 1feaac277d | d0b8466b799ba9dd2d9fbe52b937b49693230d8fd833cea45f555ff30986e03d |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | 67e3b96d83d37845cef8956efaf6d2b5f86c48152d925fa9cb6e124e6ae6effd |