lundi 23 décembre 2019

How to test LinkedHashMap with JUnit

I have an implementation of the LRU algorithm that infuses LinkedhashMap. How can I test with JUnit?

I used a comparison using toString. But as I understand it is not true.

    assertEquals("{2=b, 4=d, 5=f, 6=g, 100=t}", lru.toString());

Aucun commentaire:

Enregistrer un commentaire