From 345390f4dbd7b440d2ec20085b95337876f95eef Mon Sep 17 00:00:00 2001 From: Philippe PITTOLI Date: Tue, 7 May 2024 01:38:52 +0200 Subject: [PATCH] Test data: the "Car" class must have a "clone" function. --- spec/test-data.cr | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/test-data.cr b/spec/test-data.cr index 09be46d..42da67e 100644 --- a/spec/test-data.cr +++ b/spec/test-data.cr @@ -93,6 +93,8 @@ class Car property color : String # a simple attribute (1-n relations) property keywords : Array(String) # tags about a car, example: "shiny" (n-n relations) + def_clone + def initialize(@name, @color, @keywords) end class_getter cars = [