public void BasicTests() { Assert.AreEqual(4, CalculateStringRotation.ShiftedDiff("eecoff", "coffee")); Assert.AreEqual(-1, CalculateStringRotation.ShiftedDiff("Moose", "moose")); Assert.AreEqual(2, CalculateStringRotation.ShiftedDiff("isn't", "'tisn")); Assert.AreEqual(0, CalculateStringRotation.ShiftedDiff("Esham", "Esham")); Assert.AreEqual(0, CalculateStringRotation.ShiftedDiff(" ", " ")); Assert.AreEqual(-1, CalculateStringRotation.ShiftedDiff("hoop", "pooh")); Assert.AreEqual(-1, CalculateStringRotation.ShiftedDiff(" ", " ")); }
public void BasicTest1() { Assert.AreEqual(4, CalculateStringRotation.ShiftedDiff("eecoff", "coffee")); }
public void BasicTest7() { Assert.AreEqual(-1, CalculateStringRotation.ShiftedDiff(" ", " ")); }
public void BasicTest6() { Assert.AreEqual(-1, CalculateStringRotation.ShiftedDiff("hoop", "pooh")); }
public void BasicTest4() { Assert.AreEqual(0, CalculateStringRotation.ShiftedDiff("Esham", "Esham")); }
public void BasicTest3() { Assert.AreEqual(2, CalculateStringRotation.ShiftedDiff("isn't", "'tisn")); }
public void BasicTest2() { Assert.AreEqual(-1, CalculateStringRotation.ShiftedDiff("Moose", "moose")); }