guix: Use guile-3.0.
[8sync.git] / tests / test-rmeta-slot.scm
index 0fd4b6f99c7952e05d00351475a8e8084505c80b..7aaa248e84646810c572b77555fb106634403992 100644 (file)
@@ -1,5 +1,6 @@
 ;;; 8sync --- Asynchronous programming for Guile
 ;;; Copyright (C) 2017 Christopher Allan Webber <cwebber@dustycloud.org>
+;;; Copyright (C) 2021 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
 ;;;
 ;;; This file is part of 8sync.
 ;;;
@@ -27,8 +28,8 @@
 ;; Define a class
 (define-class <kah-lassy> ()
   (entries #:allocation #:each-subclass
-           #:init-value
-           (make-rmeta-slot
+           #:init-thunk
+           (build-rmeta-slot
             `((foo . "bar")
               (baz . "basil")))))
 
@@ -41,8 +42,8 @@
 
 (define-class <sub-lassy> (<kah-lassy>)
   (entries #:allocation #:each-subclass
-           #:init-value
-           (make-rmeta-slot
+           #:init-thunk
+           (build-rmeta-slot
             `((foo . "foo2")
               (peanut . "gallery")))))
 
@@ -62,5 +63,5 @@
   (class-rmeta-ref <sub-lassy> 'entries 'not-defined
                    #:dflt "no-way"))
 
-(test-end "test-rmeta-slot")
 (test-exit)
+(test-end "test-rmeta-slot")