Test cases for arithametical division function?


Question:
sample software test cases for division function for mathematical calculation

Answer:
if divisor = 0
-> say divisor isn't valid

if divisor = 1 (optional)
-> just return the dividend (there's no real need to do the division)

if divisor = -1 (optional)
-> return the negative of the dividend

else
-> perform division and return answer


I hope that's what you were asking for...
You question is somewhat unclear =)
Ur test case should include division by zero case.
it should be between 2 numbers and not just at begining. like that
I m not into testing but i guess u should check for -

1 - Only proper numeric value is inserted
2 - should not allow 0 as divisor

what else.. i can think of these 2 only. It can be increased if you are looking for some specified range of division operation...
Most important test is division by zero.
Then you can different test cases,
1) numerator greater than denominator and vice versa
2) -ve and +ve values for both denominator and numerator.
3) int, float, double in numerator and denominator
More Questions & Answers...
  • What is the Project management concept? and can it be applyed for your private company ,manufacture?
  • Hr block human resource website?
  • Economics question?
  • Dear friends,kindly provide me latest info on the research for next generation computers and networking.?
  • How bad is it for one's eyesight?
  • How is the financial management of medical researches in medical research centers?
  • I want details of project on fund management of companies.?
  • I have to make a project on disaster management. what topics should i include in it? and where will i find it?
  • The questions and answers post by the user, for information only, AnswersRoom.com does not guarantee the right
    Copyright © 2007 AnswersRoom.com -   Terms of Use -   Contact us

    Hot Topic