Closed postmodern closed 11 years ago
Why this is not a valid mutation?
super
without arguments implicitly passes all arguments.
I know. It is a Rubinius::AST::ZSuper
node with differend bytecode and behavior. So again why this is not a valid mutation?
Doesn't change behaviour, mutant doesn't get killed.
So you explicit argument passing is just the same as using the zsuper node. You should refactor your code to use the zsuper to kill it.
A good strategy is to change the code to the mutation, and try to create a spec that forces you to switch back. If you cannot find such a spec, just accept the code ;).
Ah good point. Let me try.
Heh, using this strategy, can I convince you to omit unneeded explicit returns also? ;)
Sorry, having a local variable dangling at the end of a method looks weird (to me).
Was a try ;)
On Mon, Jan 21, 2013 at 12:58:03AM -0800, Postmodern wrote:
Sorry, having a local variable dangling at the end of a method looks weird.
Reply to this email directly or view it on GitHub: https://github.com/mbj/mutant/issues/15#issuecomment-12489124
Markus Schirp
Phone: +49 201 / 360 379 14 Fax: +49 201 / 360 379 16 Web: www.seonic.net Email: mbj@seonic.net Twitter: twitter.com/_m_bj OS-Code: github.com/mbj
Seonic IT-Systems GbR Anton Shatalov & Markus Schirp Altendorferstrasse 44 D-45127 Essen
@postmodern Can we close this issue?
Thx.