@@ -227,12 +227,12 @@ Feature: Vector
227227 Scenario Outline : Reference an element
228228 Given a file named "main.scm" with:
229229 """scheme
230- (import (scheme base) (scheme write) )
230+ (import (scheme base))
231231
232- (write (vector-ref (make-vector <length> 42 ) <index>))
232+ (write-u8 (vector-ref (make-vector <length> 65 ) <index>))
233233 """
234234 When I successfully run `stak main.scm`
235- Then the stdout should contain exactly "42 "
235+ Then the stdout should contain exactly "A "
236236
237237 Examples :
238238 | length | index |
@@ -260,14 +260,14 @@ Feature: Vector
260260 Scenario Outline : Convert values between a list and a vector
261261 Given a file named "main.scm" with:
262262 """scheme
263- (import (scheme base) (scheme write) ( srfi 1))
263+ (import (scheme base) (srfi 1))
264264
265265 (define xs (iota <count>))
266266
267- (write ( equal? (vector->list (list->vector xs)) xs))
267+ (write-u8 (if ( equal? (vector->list (list->vector xs)) xs) 65 66 ))
268268 """
269269 When I successfully run `stak main.scm`
270- Then the stdout should contain exactly "#t "
270+ Then the stdout should contain exactly "A "
271271
272272 Examples :
273273 | count |
@@ -298,11 +298,11 @@ Feature: Vector
298298 Scenario Outline : Use a vector literal
299299 Given a file named "main.scm" with:
300300 """scheme
301- (import (scheme base) (scheme write) )
301+ (import (scheme base))
302302
303303 (define xs (include "./value.scm"))
304304
305- (write ( vector-ref xs <index>))
305+ (write-u8 (if (= ( vector-ref xs <index>) <index>) 65 66 ))
306306 """
307307 And a file named "write.scm" with:
308308 """scheme
@@ -315,7 +315,7 @@ Feature: Vector
315315 stak write.scm > value.scm
316316 """
317317 When I successfully run `stak main.scm`
318- Then the stdout should contain exactly "<index> "
318+ Then the stdout should contain exactly "A "
319319
320320 Examples :
321321 | length | index |
0 commit comments