Suppose I want to build a Vector library. It has a Vector struct:
(struct vector (x y z))
Now I want to write unit test for vector module in the test module. for testing I need to access x y and z. But I do not want to expose vector-{xyz}
. Is there a way to provide accessor only for the unit tests?
Aucun commentaire:
Enregistrer un commentaire