# Test Flips Count observed pass-to-fail or fail-to-pass transitions across reruns of one test. Reject nonbinary results. Testing, documents and accessible interfaces · library · 0.1.0 ## Function ```blyx pub fn test_flips(outcomes: vector) -> i64 ``` Use finite numeric values. Integer arithmetic assumes that intermediate results fit signed 64-bit storage. All indices are zero-based unless the contract above states otherwise. | Inputs in declaration order | Expected result | |---|---| | `[0,1,1,0,1]` | `3` | | `[0]` | `0` | | `[5]` | `-1` | ## Try the published project ```sh nest demo test_flips@0.1.0 blyxc native-run test_flips-demo/main.blyx ``` Install with `nest add test_flips@0.1.0` and import `vendor::test_flips::test_flips`. Maintained by Rahul Chaube. [Blyx](https://www.blyx-lang.space) · [GitHub](https://github.com/Rahulchaube1) · [LinkedIn](https://www.linkedin.com/in/rahulchaube1) · [Sponsor](https://github.com/sponsors/Rahulchaube1)