From: Duff O'Melia Date: 2001-03-25T23:10:03+09:00 Subject: [ruby-talk:13196] Re: Request for additional Lapidary assert methods wrote in message news:m27l1e2yib.fsf@skaro.access.one.net... > >>>>> "Duff" == Duff O'Melia writes: > > Duff> The following assert methods have been very helpful to me in > Duff> the past when using JUnit. [...] I think the following > Duff> should be added to the framework: > > Duff> # To do instance checks: > Duff> assertSame(expected, actual) > Duff> assertNotSame(expected, actual) > Jim> What's the difference between Same and Equal? assertEqual(expected, actual) calls expected == actual assertSame(expected, actual) calls expected.equal?(actual) > Duff> - I haven't used regular expressions much (yet) so I'm not > Duff> sure whether I'd use: > Duff> assertDoesNotMatch(regularExpression, string) > > I've used this when testing regular expressions, e.g. asserting that > the RE matches these strings and does not match these other strings. That makes sense. Sounds good to me. ==================================================================== Duff O'Melia RoleModel Software 342 Raleigh Street Holly Springs, NC 27540