Introduction for This volume is the companion to Volume 1 which explains the rationale underlying the design of the Version 2 Minimal BASIC Test Programs and also contains detailed instructions operating and interpreting the tests. This volume complements the information in Volume 1, by allowing you, to examine the source code in its original form, and second to get an idea of what the out put 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 Because the standard allows certain be implementation defined, not all standard processors need produce exactly the same output. You must compare the output 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 output 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 conforming processor, that is, one which provided for no syntactic enhancements of the Minimal BASIC standard. 3 PRINTing and simple assignment (LET) 3.1 String variables and TAB 5 .....2-5 8 ..2-4 8 .5 11 6.1 Standard Capabilities **** ****** ***** 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 11 70 PRINT 11 WHICH HAS NOT YET BEEN TESTED. IF SUBSEQUENT TESTS SHOW" 290 PRINT " 300 PRINT 11 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" 340 PRINT " 350 PRINT END TEST." 360 PRINT "SECTION 1.2: LEGAL CHARACTERS IN PRINTING QUOTED STRINGS." 390 PRINT 400 PRINT " 410 PRINT BEGIN TEST." 420 PRINT LINE BELOW MUST PRINT OUT UPPER CASE LETTERS A THROUGH Z" 430 PRINT " ABCDEFGHIJKLMNOPQRSTUVWXYZ" 440 PRINT 450 PRINT " LINE BELOW MUST PRINT OUT DIGITS ZERO THROUGH NINE." 460 PRINT " 0123456789" 470 PRINT ****** **** |