From: Daniel Carrera Date: 2003-02-18T06:54:08+09:00 Subject: [Q] Test::Unit I'm trying to figure out how to ust Test::Unit. I've read the documentation in: http://testunit.talbott.ws/doc/index.html But I'm no closer to understanding it than I was before. At the end of the page, the author says that (s)he'd like to get some feedback. Whoever the author might be, here is some feedback: 1) Include your name and email so that it's easier to send you feedback. 2) Could you include an example of how I'd use Test::Unit? Here is a simple case. Say I write a private method to add two numbers: class MyClass private def add(a,b) return a+b end end And I want to - say - assert that the return value is larger than the first input value. How can I use Test::Unit to make this assertion? How can I use Test::Unit to assert in-between steps inside my methods? Currently I have things like: condition or raise "condition was not met" How can I replace this sort of thing by test units? Thanks. -- Daniel Carrera Graduate Teaching Assistant. Math Dept. University of Maryland. (301) 405-5137