Skip to content

Commit

Permalink
Fix bug in vector-set./example.run
Browse files Browse the repository at this point in the history
  • Loading branch information
dvanhorn committed Oct 25, 2024
1 parent 8a4fb9c commit 9f48000
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 5 deletions.
2 changes: 2 additions & 0 deletions hoax/compile-ops.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@
(Pop r8)
(assert-vector r8)
(assert-integer r10)
(Cmp r8 type-vect)
(Je 'err)
(Cmp r10 0)
(Jl 'err)
(Xor r8 type-vect) ; r8 = ptr
Expand Down
3 changes: 2 additions & 1 deletion hoax/test/test-runner.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@
(check-equal? (run '(string? (cons 1 2))) #f)
(check-equal? (run '(begin (make-string 3 #\f)
(make-string 3 #\f)))
"fff")))
"fff")
(check-equal? (run '(vector-set! (make-vector 0 #f) 0 #t)) 'err)))

(define (test/io run)
(begin ;; Evildoer
Expand Down
2 changes: 2 additions & 0 deletions iniquity/compile-ops.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@
(Pop r8)
(assert-vector r8)
(assert-integer r10)
(Cmp r8 type-vect)
(Je 'err)
(Cmp r10 0)
(Jl 'err)
(Xor r8 type-vect) ; r8 = ptr
Expand Down
3 changes: 2 additions & 1 deletion iniquity/test/test-runner.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@
(check-equal? (run '(string? (cons 1 2))) #f)
(check-equal? (run '(begin (make-string 3 #\f)
(make-string 3 #\f)))
"fff"))
"fff")
(check-equal? (run '(vector-set! (make-vector 0 #f) 0 #t)) 'err))

(begin ;; Iniquity
(check-equal? (run
Expand Down
2 changes: 2 additions & 0 deletions jig/compile-ops.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@
(Pop r8)
(assert-vector r8)
(assert-integer r10)
(Cmp r8 type-vect)
(Je 'err)
(Cmp r10 0)
(Jl 'err)
(Xor r8 type-vect) ; r8 = ptr
Expand Down
3 changes: 2 additions & 1 deletion jig/test/test-runner.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@
(check-equal? (run '(string? (cons 1 2))) #f)
(check-equal? (run '(begin (make-string 3 #\f)
(make-string 3 #\f)))
"fff"))
"fff")
(check-equal? (run '(vector-set! (make-vector 0 #f) 0 #t)) 'err))

(begin ;; Iniquity
(check-equal? (run
Expand Down
2 changes: 2 additions & 0 deletions knock/compile-ops.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@
(Pop r8)
(assert-vector r8)
(assert-integer r10)
(Cmp r8 type-vect)
(Je 'err)
(Cmp r10 0)
(Jl 'err)
(Xor r8 type-vect) ; r8 = ptr
Expand Down
3 changes: 2 additions & 1 deletion knock/test/test-runner.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@
(check-equal? (run '(string? (cons 1 2))) #f)
(check-equal? (run '(begin (make-string 3 #\f)
(make-string 3 #\f)))
"fff"))
"fff")
(check-equal? (run '(vector-set! (make-vector 0 #f) 0 #t)) 'err))

(begin ;; Iniquity
(check-equal? (run
Expand Down
2 changes: 2 additions & 0 deletions loot/compile-ops.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@
(Pop r8)
(assert-vector r8)
(assert-integer r10)
(Cmp r8 type-vect)
(Je 'err)
(Cmp r10 0)
(Jl 'err)
(Xor r8 type-vect) ; r8 = ptr
Expand Down
3 changes: 2 additions & 1 deletion loot/test/test-runner.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@
(check-equal? (run '(string? (cons 1 2))) #f)
(check-equal? (run '(begin (make-string 3 #\f)
(make-string 3 #\f)))
"fff"))
"fff")
(check-equal? (run '(vector-set! (make-vector 0 #f) 0 #t)) 'err))

(begin ;; Iniquity
(check-equal? (run
Expand Down

0 comments on commit 9f48000

Please sign in to comment.