assertTrue(Arrays.equals(a1, a2));
}
Symbol[] symbols(String expression) throws ScanException {
ArrayList<Symbol> list = new ArrayList<Symbol>();
Scanner scanner = new Scanner(expression);
Token token = scanner.next();
while (token.getSymbol() != EOF) {
list.add(token.getSymbol());
token = scanner.next();
}
return list.toArray(new Symbol[list.size()]);
}