Primitive Stacks no longer depend on the base Stack class.

This commit is contained in:
2021-06-23 19:07:30 +02:00
parent f4c25c683f
commit a669f69d99
5 changed files with 29 additions and 49 deletions
@@ -18,13 +18,13 @@ public interface IIntStackTests
public default void testPush()
{
IntStack stacks = create(TEST_ARRAY);
stacks.pushInt(500);
Assert.assertEquals(500, stacks.topInt());
stacks.push(500);
Assert.assertEquals(500, stacks.top());
}
@Test
public default void testPop()
{
Assert.assertEquals(99, create(TEST_ARRAY).topInt());
Assert.assertEquals(99, create(TEST_ARRAY).top());
}
}