def test_aa(self): self.assertEqual(substringAnagrams("aa"), 1)
def test_big_0(self): s = "dbcfibibcheigfccacfegicigcefieeeeegcghggdheichgafhdigffgifidfbeaccadabecbdcgieaffbigffcecahafcafhcdg" self.assertEqual(substringAnagrams(s), 1464)
def test_big_1(self): s = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" self.assertEqual(substringAnagrams(s), 166650)
def test_ifailuhkqq(self): self.assertEqual(substringAnagrams("ifailuhkqq"), 3)
def test_cdcd(self): self.assertEqual(substringAnagrams("cdcd"), 5)
def test_abcd(self): self.assertEqual(substringAnagrams("abcd"), 0)
def test_abba(self): self.assertEqual(substringAnagrams("abba"), 4)
def test_40_a(self): self.assertEqual( substringAnagrams("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"), 10660)