Repository navigation
Releases
FBCS v1.0.1
Corrections to the ECMA-116 claims. The interpreter is unchanged: FullBASIC v4 1.0.
The eight ECMA-116 claims that reported a "known deviation" were wrong. Every example concerned is accepted in the form the standard intends:
- Examples that are bodies of statements.
NUMERIC*5.2 A, B, ...(15.1.3) is the numeric-type of aDECLAREstatement.WINDOW ...,VIEWPORT ...,CLIP ...,LINE STYLE ...andTEXT COLOR ...(13.1.3, 13.2.3) are set-objects of aSETstatement. - Transcription losses.
READ X, , Z(10.1.3) isREAD X, Y, Z. InRECSIZE RS$ NUMCHARS(11.1.3),NUMCHARSis the numeric variable ofRECSIZE. - Fixed-point sizes on parameters and functions (15.2.3). They are accepted when the program-unit specifies
ARITHMETIC FIXED, as 15.2.2 requires. The old tests did not specify it. SET #NandMAT REWRITE.SET #Nwith a channel expression works.MAT REWRITEof several arrays works when each array has its own template-element (ECMA-0249).
Changes to the suite:
- The claims are rewritten.
- ECMA-0071 and ECMA-0102 to ECMA-0104 now test the full forms.
- ECMA-0072 uses
SET #N. - ECMA-0249 is new.
Results: 2085 pass, 0 fail, 0 unsupported. The only remaining difference from ECMA-116 is its erratum in 11.3.2 (claim A-ECMA-errata-01).
FBCS v1.0
First public release of FBCS, the Full BASIC Conformance Suite: an interpreter-independent suite for ANSI X3.113-1987 Full BASIC (FIPS PUB 68-2) and ECMA-116, in the style of the NBS Minimal BASIC test programs.
What is included
- 2084 test programs under
programs/, with their oracles (.OUT,.IN,.DRAW). - The claims they decide, in
claims/, and the agreed readings of the standard, ininterpretations.yaml. - The tools, in plain Python 3 with no packages to install:
run_suite.pyruns the programs against any interpreter,check_claims.pychecks that claims, programs and results agree, andgen_compliance.pywrites the conformance documents. - The results of FullBASIC v4 1.0: 2084 pass, 0 fail, 0 unsupported. They yield 1270 ANSI claims (
COMPLIANCE_ANSI.md) and 787 ECMA-116 claims (COMPLIANCE_ECMA.md).
Scope of the FullBASIC v4 results
- Claimed: the Core, Enhanced Files, Graphics and Fixed Decimal modules of ANSI X3.113-1987, and ECMA-116 BASIC-2 with the Graphics module.
- Not claimed: section 14 (Real Time) and section 16 (Editing).
Running it against your interpreter
See README.md. A command line that runs a program is enough. Reporting errors and graphic primitives is needed only for the optional test types.
Released under the MIT License.