franiglesias / golden

Golang Library for snapshot testing
MIT License
3 stars 2 forks source link

bugfix: fixed combinatory.Generate func #10

Closed josephbuchma closed 7 months ago

josephbuchma commented 7 months ago

Tricky one. Here's playground with some prints for debugging: https://go.dev/play/p/JoJL7tXB3xF The issue is caused by unintentional reusing of slices.

franiglesias commented 7 months ago

I'm so sorry @josephbuchma . I haven't received the notification for the PR (I think I have some wrong setting or a mail filter, not sure about this). I will review this ASAP. Thank you very much for taking the time to review the library and for submitting the fix.