MCPcopy
hub / github.com/libgdx/libgdx / toStringTest

Method toStringTest

gdx/test/com/badlogic/gdx/utils/QueueTest.java:332–342  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

330 }
331
332 @Test
333 public void toStringTest () {
334 Queue<Integer> q = new Queue<Integer>(1);
335 assertTrue(q.toString().equals("[]"));
336 q.addLast(4);
337 assertTrue(q.toString().equals("[4]"));
338 q.addLast(5);
339 q.addLast(6);
340 q.addLast(7);
341 assertTrue(q.toString().equals("[4, 5, 6, 7]"));
342 }
343
344 @Test
345 public void hashEqualsTest () {

Callers

nothing calls this directly

Calls 3

toStringMethod · 0.95
addLastMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected