aragraph">Asserts on each item in the sequence, passing if at most <code class="lang-kotlin">times</code> items pass. The given lambda will be run for each item.</p><div class="sample-container"><pre><code class="block lang-kotlin" theme="idea">assert(sequenceOf(-2, -1, 1)).atMost(2) { it.isPositive() }</code></pre><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></