geofot96/StudyBuddy

View on GitHub
app/src/test/java/ch/epfl/sweng/studdybuddy/HelperTest.java

Summary

Maintainability
A
0 mins
Test Coverage
package ch.epfl.sweng.studdybuddy;


import org.junit.Test;

import ch.epfl.sweng.studdybuddy.core.Pair;
import ch.epfl.sweng.studdybuddy.util.Helper;

import static org.junit.Assert.assertEquals;

public class HelperTest {
    @Test
    public void pairHashcodeEqualsHashcodeOfBothPairs() {
        assertEquals(Helper.hashCode(new Pair("a", "b")), Integer.toString(("a" + "b").hashCode()));
    }
}