testcheck-js icon indicating copy to clipboard operation
testcheck-js copied to clipboard

Generate circular data

Open bas080 opened this issue 4 years ago • 3 comments

A bug got passed me because testcheck does not generate circular data using the gen.any. Would it be reasonable to add circular data to the generators?

bas080 avatar Dec 05 '21 08:12 bas080

Sounds like an interesting challenge!

On Sun, Dec 5, 2021 at 12:49 AM bas080 @.***> wrote:

A bug got passed me because testcheck does not generate circular data using the gen.any. Would it be reasonable to add circular data to the generators?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/leebyron/testcheck-js/issues/104, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAMHUTM7ZQ37SZEKVMDODDUPMRQZANCNFSM5JMRFQMQ .

-- Lee Byron

leebyron avatar Dec 05 '21 08:12 leebyron

Why is it interesting? Is it because clojure script prefers immutable data? Does it have the tools to work with Javascript references?

bas080 avatar Dec 08 '21 13:12 bas080

Yeah exactly, I don't think Clojure will easily generate cycles, so that may need to be an explicit follow up step

leebyron avatar Dec 08 '21 16:12 leebyron