// Path: src/main/java/com/hackerrank/SherlockAndAnagrams.java
// static int countAnagrams(String input) {
//     int result = 0;
//     for (int i = 0; i < input.length(); i++) {
//         for (int j = i + 1; j < input.length(); j++) {
//             result += count(input.substring(i, j), input.substring(i + 1, input.length()));
//         }
//     }
//     return result;
// }


import org.junit.Test;
import static com.hackerrank.SherlockAndAnagrams.countAnagrams;
import static org.assertj.core.api.AssertionsForInterfaceTypes.assertThat;
package com.hackerrank;



public class SherlockAndAnagramsTest {

    @Test
    public void noAnagrams() {
// Path: src/main/java/com/hackerrank/SherlockAndAnagrams.java
// static int countAnagrams(String input) {
//     int result = 0;
//     for (int i = 0; i < input.length(); i++) {
//         for (int j = i + 1; j < input.length(); j++) {
//             result += count(input.substring(i, j), input.substring(i + 1, input.length()));
//         }
//     }
//     return result;
// }


// Path: src/test/java/com/hackerrank/SherlockAndAnagramsTest.java
import org.junit.Test;
import static com.hackerrank.SherlockAndAnagrams.countAnagrams;
import static org.assertj.core.api.AssertionsForInterfaceTypes.assertThat;

package com.hackerrank;



public class SherlockAndAnagramsTest {

    @Test
    public void noAnagrams() {
        assertThat(countAnagrams("abcd")).isEqualTo(0);