From 7df7eeecbff97dde6171f1248878a80d1e477364 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 27 May 2019 10:31:32 +0100 Subject: [PATCH] step6: Test loading of a large (>255 byte) file earlier than before. I just introduced a bug in the BBC BASIC implementation meaning that 'load-file' was broken on files over 255 bytes long, and it was only caught by the optional test of 'time-ms' in step A. This change brings forward the relevant part of that test so the failure can be detected earlier and more obviously, at the same time as the other tests of 'load-file'. --- tests/step6_file.mal | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/step6_file.mal b/tests/step6_file.mal index 608b9b42..cf1fd2f2 100644 --- a/tests/step6_file.mal +++ b/tests/step6_file.mal @@ -86,9 +86,20 @@ ;=>9 ;>>> deferrable=True +;; +;; -------- Deferrable Functionality -------- + +;; Testing reading of large files +(load-file "../tests/computations.mal") +;=>nil +(sumdown 2) +;=>3 +(fib 2) +;=>1 + ;>>> optional=True ;; -;; -------- Deferrable/Optional Functionality -------- +;; -------- Optional Functionality -------- ;; Testing comments in a file (load-file "../tests/incB.mal")