New answers tagged

0

One option would be to use your own test runner. I did this recently and now have: do_test.sh do_test_error_messages.sh Include these files and then use like this, where "divisors", "amicables", etc. are the functions you want to test and then the last parameters are used by the function this way: do_test setup $LINENO True 0 do_test divisors $LINENO ...


4

If all you want is pass-or-fail status on a series of scripts by comparing their output to a known-good output, you can easily setup GNU-Make to run the tests for you. Yes, to write a Makefile is to dabble in dark arts — but this sort of thing is exactly what make does and it will handle a ton of scenarios out of the box that most test frameworks would just ...


0

Boundary Analysis work Example:Q In an Examination a candidate has to score minimum of 24 marks in order to clear the exam. The maximum that he can score is 40 marks. Identify the Valid Equivalence values if the student clears the exam. a) 22,23,26 b) 21,39,40 c) 29,30,31 d) 0,15,22 Solution: The classes will be as follows: Class I: ...



Top 50 recent answers are included