Page images
PDF
EPUB

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.

[blocks in formation]

3 PRINTing and simple assignment (LET) 3.1 String variables and TAB

[blocks in formation]

5

.....2-5

8

..2-4

8

[ocr errors]

.5

11

[blocks in formation]
[merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][ocr errors][merged small][merged small][merged small][ocr errors][merged small][merged small]

6.1

Standard Capabilities

[blocks in formation]
[merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][ocr errors][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small]
[merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][ocr errors][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][ocr errors][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][ocr errors][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small]
[blocks in formation]

****

******

*****

[ocr errors]

10 PRINT "PROGRAM FILE 1: NULL PRINT AND PRINTING QUOTED STRINGS."
20 PRINT
ANSI STANDARD 3.2, 3.4, 5.2, 5.4, 12.2, 12.4"
30 PRINT

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"
THIS FEATURE TO BE INCORRECTLY IMPLEMENTED, THEN THE "
VALIDITY OF THE RESULTS OF THIS TEST ROUTINE IS DOUBTFUL."

[merged small][merged small][merged small][merged small][merged small][merged small][ocr errors][merged small][ocr errors][merged small][ocr errors][ocr errors][merged small][merged small][ocr errors][ocr errors][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small]

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"
320 PRINT
THEM, AND LINES 5 AND 8 TWO BLANK LINES ***11
330 PRINT

340 PRINT "

350 PRINT

END TEST."

360 PRINT "SECTION 1.2: LEGAL CHARACTERS IN PRINTING QUOTED STRINGS." 390 PRINT

400 PRINT "

410 PRINT

[ocr errors]

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

****** ****

« PreviousContinue »