Thanks to visit codestin.com
Credit goes to github.com

Skip to content

cocode/BasicTestSuite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo BASIC Test Suite

This is a collection of BASIC programs that will exercise various features of the langauge.

This is part of the TrekBasic family of BASIC programming tools.

  • TrekBasic - Basic compiler and interpreter in Python
  • TrekBasicJ - Basic compiler and interpreter in Java
  • BasicRS - Basic compiler written in Rust
  • BasicTestSuite - A test suite of BASIC Programs
  • TrekBot - A tool to exercise the superstartrek program

All versions, intepreted and compiled, are intended to by byte-by-byte compatible, but are not there yet - but they are close. TrekBot and BasicTestSuite are part of the plan to ensure full compatibility.

Test Runners

Test runners (in Python, Java and Rust) simply iterate over all *.bas files found in the directory. Those test runners are found in their respective projects, above.

Conventions

The test programs are supposed to run and return a 0 (success) status code.

Directives

EXPECT_EXIT_CODE

The test runners chack the first line for a rem statement with directives. A STOP would normally indicate an error, but with EXPECT_EXIT_CODE=1, exiting with 1 (STOP) is considered success.

100 REM @EXPECT_EXIT_CODE=1

This indicates that a program should finish with a STOP command, which would normally be an error.

About

This is a set of BASIC programs used to test our implementations of BASIC

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages