[Pharo-project] Kind of Stuff I would like to change in 3.0
TestCase>>cleanUpInstanceVariables self class allInstVarNames do: [ :name | name = 'testSelector' ifFalse: [ self instVarNamed: name put: nil ] ] Jannik & Noury -- http://twitter.com/#!/NouryBouraqadi http://car.mines-douai.fr/noury Afin de contribuer au respect de l'environnement, merci de n'imprimer ce courriel qu'en cas de necessite Please consider the environment before you print
On 28 February 2013 15:46, Noury Bouraqadi <bouraqadi@gmail.com> wrote:
TestCase>>cleanUpInstanceVariables self class allInstVarNames do: [ :name | name = 'testSelector' ifFalse: [ self instVarNamed: name put: nil ] ]
What is it that you find wrong about this? Its absence would cause a problem with Fuel, where the TestCases end up hanging onto obsolete classes. frank
Never put a constant in a method. How can I provide a different set of IVs? No way of doing it except rewriting the whole method, which is dirty. On 28 févr. 2013, at 18:52, Frank Shearar wrote:
On 28 February 2013 15:46, Noury Bouraqadi <bouraqadi@gmail.com> wrote:
TestCase>>cleanUpInstanceVariables self class allInstVarNames do: [ :name | name = 'testSelector' ifFalse: [ self instVarNamed: name put: nil ] ]
What is it that you find wrong about this? Its absence would cause a problem with Fuel, where the TestCases end up hanging onto obsolete classes.
frank
Noury Bouraqadi Ecole des Mines de Douai http://car.mines-douai.fr/noury --
Right, gotcha. So you'd like to see a #protectedInstvars method that returned a collection of instvars not to be touched. Of course, you really want first class slots here, not just returning names of instvars. frank On 28 February 2013 19:05, Noury Bouraqadi <bouraqadi@gmail.com> wrote:
Never put a constant in a method. How can I provide a different set of IVs? No way of doing it except rewriting the whole method, which is dirty.
On 28 févr. 2013, at 18:52, Frank Shearar wrote:
On 28 February 2013 15:46, Noury Bouraqadi <bouraqadi@gmail.com> wrote:
TestCase>>cleanUpInstanceVariables self class allInstVarNames do: [ :name | name = 'testSelector' ifFalse: [ self instVarNamed: name put: nil ] ]
What is it that you find wrong about this? Its absence would cause a problem with Fuel, where the TestCases end up hanging onto obsolete classes.
frank
Noury Bouraqadi Ecole des Mines de Douai http://car.mines-douai.fr/noury --
participants (2)
-
Frank Shearar -
Noury Bouraqadi