public void testIndentTabs() {
//test after class xxx:\n
strategy.setIndentPrefs(new TestIndentPrefs(false, 4));
String doc = "class c:";
DocCmd docCmd = new DocCmd(doc.length(), 0, "\n");
strategy.customizeDocumentCommand(new Document(doc), docCmd);
String expected = "\n" +
"\t";
assertEquals(expected, docCmd.text);
//test after class xxx: \n
strategy.setIndentPrefs(new TestIndentPrefs(false, 4));
doc = "class c: ";
docCmd = new DocCmd(doc.length(), 0, "\n");
strategy.customizeDocumentCommand(new Document(doc), docCmd);
expected = "\n" +
"\t";
assertEquals(expected, docCmd.text);
//test regular
doc = "\ta = 2";
docCmd = new DocCmd(doc.length(), 0, "\n");
strategy.customizeDocumentCommand(new Document(doc), docCmd);
expected = "\n" +
"\t";
assertEquals(expected, docCmd.text);
//test after [ a,\n
doc = "m = [a,";
docCmd = new DocCmd(doc.length(), 0, "\n");
strategy.customizeDocumentCommand(new Document(doc), docCmd);
expected = "\n" +
"\t";
assertEquals(expected, docCmd.text);
//test after \t[ a,\n
doc = "\tm = [a,";
docCmd = new DocCmd(doc.length(), 0, "\n");
strategy.customizeDocumentCommand(new Document(doc), docCmd);
expected = "\n" +
"\t\t";
assertEquals(expected, docCmd.text);
//test after \t[ a,\n
doc = "\tm = [a, ";
docCmd = new DocCmd(doc.length(), 0, "\n");
strategy.customizeDocumentCommand(new Document(doc), docCmd);
expected = "\n" +
"\t\t";
assertEquals(expected, docCmd.text);
}