Re: Unit tests in Leo

2005-04-10 Thread Tomi Lindberg
[EMAIL PROTECTED] wrote: Hello Tomi, I'm not really sure about your question, but concerning unit testing you can do a simple test. No problem. I found the Leo forums at Source Forge and I've already received some answers in there. Thanks for replying though. -- "Nowhere in me is the presence of

Re: Unit tests in Leo

2005-04-10 Thread [EMAIL PROTECTED]
Hello Tomi, I'm not really sure about your question, but concerning unit testing you can do a simple test. import unittest First: in your module (where you define functions) you should create a class which use unittest.TestCase as your superclass. Second: Use method runTest to type your test

Unit tests in Leo

2005-04-08 Thread Tomi Lindberg
I'm quite (or very) new to both unit testing and Leo. I've been trying to get @test nodes to work without success so I'd like to have very simple example. So, if I have a @file with the following content... def divide_by_two(x): return x/2 ...and I'd like to write a @test node that checks wh