Blyx Nest Blyx language
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.

Source repository · Package JSON

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

VersionPackageSource commitSHA-256
0.1.1Download ZIP · Browse files1feaac277dd0b8466b799ba9dd2d9fbe52b937b49693230d8fd833cea45f555ff30986e03d
0.1.0Download ZIP · Browse files6349f2378467e3b96d83d37845cef8956efaf6d2b5f86c48152d925fa9cb6e124e6ae6effd