aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Peter McGoron 2025-03-06 14:32:48 -0500
committerGravatar Peter McGoron 2025-03-06 14:32:48 -0500
commit6763215c2c4bbfb3cae3273864be58bcc70ddac9 (patch)
tree0267af0462bf0553bb42158761ec30394e4fc6a8 /tests
parenttest overrides (diff)
better flags handling
Diffstat (limited to 'tests')
-rw-r--r--tests/run.scm10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/run.scm b/tests/run.scm
index b41f536..3a5c81a 100644
--- a/tests/run.scm
+++ b/tests/run.scm
@@ -194,7 +194,7 @@
(gsampling (inexact-complex-generator))))))))
(test-group "local scope overrides dynamic scope subtyping even with overridable"
(parameterize-SAHP ((sub ('number (lambda (x) 1))))
- (letrec-SAHP ((sub ('exact-rational 'overridable (lambda (x) 2))))
+ (letrec-SAHP ((sub ('exact-rational '(overridable) (lambda (x) 2))))
(define (test-local n)
(= 2 (sub n)))
(define (test-dynamic n)
@@ -227,7 +227,7 @@
(list
(gsampling (inexact-complex-generator)))))))
(test-group "dynamic scope overrides global scope even with overridable"
- (parameterize-SAHP ((sub ('exact-rational 'overridable (lambda (x) 2))))
+ (parameterize-SAHP ((sub ('exact-rational '(overridable) (lambda (x) 2))))
(test-group "dynamic"
(test-property test-dynamic
(list
@@ -256,11 +256,11 @@
(test-group "local scope overrides dynamic scope overrides global scope even when overridable"
(parameterize-SAHP ((sub
('exact-rational
- 'overridable
+ '(overridable)
(lambda (x) 2))))
(letrec-SAHP ((sub
('exact-integer
- 'overridable
+ '(overridable)
(lambda (x) 3))))
(define (test-local n)
(= 3 (sub n)))
@@ -289,7 +289,7 @@
(exact-rational-generator))))))
(test-group "override in local scope to global scope"
(letrec-SAHP ((sub ('number
- 'overridable
+ '(overridable)
(lambda (x) 2))))
(define (is-local-scope x)
(= (sub x) 2))