implement the calculator class which handles comma as a separator
extract custom assertion to make code easier to read
test for newline as delimiter