From 26197ab6e647ae9e37fb56f7844cf711fc10409c Mon Sep 17 00:00:00 2001 From: Robby Zambito Date: Tue, 21 Feb 2023 16:53:25 -0500 Subject: Bring SRFI 180 up to feature parity Record mutators may not mutate the record in place. Mutating an empty object should return a new object if it cannot be mutated. --- test/run.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/run.scm') diff --git a/test/run.scm b/test/run.scm index d0b0e27..38d28de 100644 --- a/test/run.scm +++ b/test/run.scm @@ -168,7 +168,7 @@ (test-equal "record mutator should mutate the record instance" 3 (let ((p (point 1 2))) - (point-set-y! p 3) + (set! p (point-set-y! p 3)) (point->y p))) (test-assert "should be able to mutate mutable record fields using json-object-set!" -- cgit