From 77cd3ad2b2b6eb97e093ee256c958e2ede6f0999 Mon Sep 17 00:00:00 2001 From: Glavo Date: Sat, 4 Jan 2025 16:37:05 +0800 Subject: [PATCH] Update SimpleMutableSeqTest --- .../java/kala/collection/mutable/SimpleMutableSeqTest.java | 6 +++--- .../kala/collection/mutable/MutableSeqTestTemplate.java | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/test/java/kala/collection/mutable/SimpleMutableSeqTest.java b/src/test/java/kala/collection/mutable/SimpleMutableSeqTest.java index ec4852ae..956a90d4 100644 --- a/src/test/java/kala/collection/mutable/SimpleMutableSeqTest.java +++ b/src/test/java/kala/collection/mutable/SimpleMutableSeqTest.java @@ -29,7 +29,7 @@ public final class SimpleMutableSeqTest implements MutableSeqTestTemplate { @SuppressWarnings("ClassEscapesDefinedScope") @Override public CollectionFactory> factory() { - return (SimpleListFactory) SimpleListFactory.INSTANCE; + return (SimpleMutableSeqFactory) SimpleMutableSeqFactory.INSTANCE; } @Override @@ -59,8 +59,8 @@ public void set(@Index int index, E newValue) { } } - private static final class SimpleListFactory implements CollectionFactory, SimpleMutableSeq> { - static final SimpleListFactory INSTANCE = new SimpleListFactory<>(); + private static final class SimpleMutableSeqFactory implements CollectionFactory, SimpleMutableSeq> { + static final SimpleMutableSeqFactory INSTANCE = new SimpleMutableSeqFactory<>(); @Override public ArrayList newBuilder() { diff --git a/src/test/template/kala/collection/mutable/MutableSeqTestTemplate.java b/src/test/template/kala/collection/mutable/MutableSeqTestTemplate.java index ec14aabd..b8bbc7df 100644 --- a/src/test/template/kala/collection/mutable/MutableSeqTestTemplate.java +++ b/src/test/template/kala/collection/mutable/MutableSeqTestTemplate.java @@ -134,7 +134,6 @@ default void shuffleTest() { Assertions.assertEquals(data.length, seq.size()); Assertions.assertTrue(seq.containsAll(data)); } - } @Test