Closed hillu closed 1 year ago
This is a bug in buttercup, and I have a fix coming.
I have no idea why some uses produce closures and some produce lambda functions. Maybe something with how macros are nested?
But, I just noticed that lua-mode/test/test-generic.el does not have lexical-binding
set. This is a documented requirement for buttercup. Maybe that's the reason for the discrepancy.
Thank you. I'll try if changing that fixes the errors.
I can report that updating to buttercup 1.28 fixed the problem I reported. Also, adding lexical-binding:t
made the otherwise unmodified test suite work with buttercup 1.26. Perhaps it would be a good idea to add a check for lexical-binding
to the code run by expect
?
Thank you for your help!
Note that the fix in https://github.com/jorgenschaefer/emacs-buttercup/commit/ae884f10ad592ea4b832ea9c7541914d8ecfaf38 means the lua-mode tests pass now.
In Debian bug 1022352 we can see that the test suite of lua-mode has started failing with buttercup 1.26. It used to run fine with buttercup 1.24.
It seems to me that the
expect
macro has become stricter about the values it accepts, resulting in error messages such asI have rewritten those tests to use
let
expressions, for example by changing …… to …
Was this change intended? Does my workaround seem sensible or is there maybe a simpler way to fix the breakage?