clone_wells(): Assert result equal to input

This adds a debug-mode safety belt that cloning wells produces a
comparable set of wells to the input.
This commit is contained in:
Bård Skaflestad 2014-07-01 17:43:34 +02:00
parent 464b0c3d15
commit 24804a1f6f

View File

@ -536,6 +536,8 @@ clone_wells(const struct Wells *W)
} }
} }
assert (wells_equal(newWells, W, false));
return newWells; return newWells;
} }