13 Nov
2005
13 Nov
'05
6:45 a.m.
Attached is a fairly rigorous test program for Extended Pascal strings. It was written by Tony Heatherington at Prospero Software; Heatherington was a member of the Extended Pascal committee. I have commented-out the 3 Prospero-specific tests. gpc does well on this test, but fails one syntax test and several runtime ones. The syntax problem is in using a parameter to define a string capacity. That can be temporarily worked around by substituting (14) for (n) on line 65. Most of the runtime errors are generated by a single problem with conformance, regarding string equality. The relevant standard text, 6.8.3.5, is below, after the string test program. Willett Kempton