@Test
public void testAdaptedBackwards() {
System.out.println("testAdaptedBackwards");
{
BackwardsAnalysisAdapter instance = new BackwardsAnalysisAdapter(new PasswordAnalysis(
"012drow78"));
//reversed would be= 87word210
//it would find 'word' at index 2
int reverseStartingIndex = 2;
int actualStartingIndex = 3;
assertAdaptedReverse(instance, reverseStartingIndex, actualStartingIndex);
}
{
BackwardsAnalysisAdapter instance = new BackwardsAnalysisAdapter(new PasswordAnalysis(
"012drow"));
//reversed would be= word210
//it would find 'word' at index 0
int reverseStartingIndex = 0;
int actualStartingIndex = 3;
assertAdaptedReverse(instance, reverseStartingIndex, actualStartingIndex);
}
{
BackwardsAnalysisAdapter instance = new BackwardsAnalysisAdapter(new PasswordAnalysis(
"drow78"));
//reversed would be= 87word
//it would find 'word' at index 2
int reverseStartingIndex = 2;