[Pharo-users] Re: "Evaluation of SUnit" — New blog post on all: objects all: theTime

2024-12-30 Thread Richard O'Keefe
First, automated test running was common practice in software engineering. We were doing it with shell scripts at my company back in 1985. And of course this is precisely what “expect” was written for, and it’s why tools like tcov/xcov exist for conventionallanguages like C. SUnit just made it *e

[Pharo-users] Re: Need Help with Changing Message Sends in Compiled Blocks

2024-12-30 Thread Tim Mackinnon
I’m not totally clear on what you are trying to do, but have you looked at the rewrite tool, that is meant for this kind of thing? The online help is reasonable good for this and there are quite a few msgs here describing it. You should be able to match the change you want and also limit the sc

[Pharo-users] Re: "Comparing SUnit with RSpec" — New blog post on all: objects all: theTime

2024-12-30 Thread Richard O'Keefe
The difference between “example” and “test” is trivial, except that Smalltalk already uses “example” for, well, examples. Sample code that is intended to be read and imitated, not run for testing. The difference between “expect” and “assert” is that “expect” asserts what to expect while “assert”

[Pharo-users] Need Help with Changing Message Sends in Compiled Blocks

2024-12-30 Thread Sebastian Jordan
TL;DR: I need help changing the message OrderedCollection new to OrderedCollection --> newTenured <-- at a specific offset in a compiled block. I can do this for regular methods, but I get an error when the method is a Block. Hello everyone, I'm trying to automatically change message sends in