Instead of just checking that the line of the error message is correct, assert that start and end position are on the correct character offset. Also fix all the tests to conform to this.
Some more tests included.
More tests are included.
Also, add some tests and update old ones to print calc() statements correctly.