From a551d5980e5c71c618b448a468f0d2eb791f1ac8 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Mon, 11 Oct 2021 23:57:03 +0200 Subject: Revert "Refactoring to test the feel of changing a value object to a ref object in nim" I hated the debug made more difficult and less intuitive, and the need to use echo repr(XXX) to see something. This reverts commit 4ea0083ffcad9b73057951d871bcf2dbd855bc7c. --- tests/field.nim | 95 ++++++++++++++++++++++++++------------------------------- 1 file changed, 43 insertions(+), 52 deletions(-) (limited to 'tests/field.nim') diff --git a/tests/field.nim b/tests/field.nim index deea574..b3c16a3 100644 --- a/tests/field.nim +++ b/tests/field.nim @@ -2,109 +2,100 @@ import unittest include ../src/field -func `==`(a, b: Field): bool = - if a.x == b.x and a.lx == b.lx and a.y == b.y and a.ly == b.ly: - for i in 0..