/** * Verifies that the actual group has the same size as given {@link Iterable}. * <p> * Examples: * <pre><code class='java'> // assertion will pass * assertThat(new byte[] { 1, 2 }).hasSameSizeAs(Arrays.asList(2, 3)); * * // assertion will fail * assertThat(new byte[] { 1, 2 }).hasSameSizeAs(Arrays.asList(1, 2, 3));</code></pre> */ @Override public SELF hasSameSizeAs(Iterable<?> other) { arrays.assertHasSameSizeAs(info, actual, other); return myself; }
/** * Verifies that the actual group has the same size as given {@link Iterable}. * <p> * Examples: * <pre><code class='java'> // assertion will pass * assertThat(new byte[] { 95, 96 }).hasSameSizeAs(Arrays.asList(2, 3)); * * // assertion will fail * assertThat(new byte[] { 126, 127 }).hasSameSizeAs(Arrays.asList(1, 2, 3));</code></pre> */ @Override public SELF hasSameSizeAs(Iterable<?> other) { arrays.assertHasSameSizeAs(info, actual, other); return myself; }
/** * {@inheritDoc} * <p/> * Examples: * <pre><code class='java'> * // assertion will pass * assertThat(new byte[] { 1, 2 }).hasSameSizeAs(Arrays.asList(2, 3)); * * // assertion will fail * assertThat(new byte[] { 1, 2 }).hasSameSizeAs(Arrays.asList(1, 2, 3)); * </code></pre> */ @Override public S hasSameSizeAs(Iterable<?> other) { arrays.assertHasSameSizeAs(info, actual, other); return myself; }