« PreviousContinue »
This volume is the companion to Volume 1 which explains the rationale underlying the design of the Version 2 Minimal BASIC Test Programs and al so contains detailed instructions for operating and interpreting the tests. This volume complements the information in Volume 1, by allowing you, first to examine the source code in its original form, and second to get an idea of what the output from a standard-conforming implementation should look like. This second purpose is especially important since the implementation under test may not allow some of the programs to fail gracefully. If you have any doubt about whether the results of a given test signify passing or failing, be sure to check the sample output for that program in this volume.
features to be
Because the standard allows certain implementation defined, not all standard processors need produce exactly the same output. You must compare the out put of your processor with this sample output carefully, making sure that any variation between the two is within the scope allowed by the standard. Appendix C of the ANSI standard lists all the features
for which implementations may differ.
This volume is ordered according to the sequential numbering system of the programs (see section 6.2 in Volume 1). The source code appears first, preceded by three lines of asterisks. The out put for that program follows immediately, separated from the program itself by a line of hyphens. The output is that which would be produced by a truly minimal standard processor, that is, one which provided enhancements of the Minimal
15.5 Line longer than 72 characters
15.6 Effect of zones and margin on PRINT 15.7 Lowercase characters
Ordering relations between strings
15.9 Mismatch of types in assignment
10 PRINT "PROGRAM FILE 1: NULL PRINT AND PRINTING QUOTED STRINGS."
40 PRINT "*** NOTE: THIS PROGRAM MAKES USE OF THE END STATEMENT"
50 PRINT "
60 PRINT " 70 PRINT " 80 PRINT
100 PRINT "
110 PRINT "
WHICH HAS NOT YET BEEN TESTED. IF SUBSEQUENT TESTS SHOW"
290 PRINT "
THIS IS LINE 8, 6 AND 7 SHOULD HAVE BEEN SKIPPED."
310 PRINT "*** TEST PASSED IF LINES 2 AND 4 HAVE A BLANK LINE BETWEEN" THEM, AND LINES 5 AND 8 TWO BLANK LINES ***"
320 PRINT "
340 PRINT "
360 PRINT "SECTION 1.2: LEGAL CHARACTERS IN PRINTING QUOTED STRINGS." 390 PRINT
400 PRINT "
420 PRINT "LINE BELOW MUST PRINT OUT UPPER CASE LETTERS A THROUGH Z" 430 PRINT " ABCDEFGHIJKLMNOPQRSTUVWXYZ"
450 PRINT " LINE BELOW MUST PRINT OUT DIGITS ZERO THROUGH NINE."
460 PRINT "