From: Paul Pladijs Date: 2001-03-22T20:36:55+09:00 Subject: [ruby-talk:13064] Lapidary questions It's great to have a new testing framework, especially for Ruby. It's the first time I'm using such a framework (shame on me). I used to build my own testprograms but these days are probably over. Thanks for building this framework. I've got a few questions: * In the method assertInstanceOf(klass, object, message="") the first parameter is klass and the second one is object. IMO it's more natural to switch those two, according to the English sentence: "that object is an instance of this klass". * The code below produces the following output: Loaded suite ExperimentWithLapidary Started... ... Finished in 0.01 seconds. 1 runs, 2 assertions, 0 failures, 0 errors ^^^ It says there are two assertions, but I only count one in the code. Perhaps this might be a bug. Reason for this is probably due to the fact that the method assertBlock is called twice (and addSuccessfulAssertion is called twice). [in the file Assertions.rb at the lines 36, 37 and 38] require 'Lapidary/Testcase' require 'Lapidary/Ui/Console/Testrunner' class ExperimentWithLapidary < Lapidary::TestCase def setup @a = 1 @b = 1 end def test_1 assert (@a == @b, "@a != @b") end end Lapidary::UI::Console::TestRunner.run (ExperimentWithLapidary) * The names of the directories and source files start with a capital letter. According to all the other ruby packages, I would suggest it might better to change that. I'm using ruby on a Windows machine, so I have no problem with mixing up small and capital letters but this might be a problem on Linux or other platforms. Regards, Paul.