test cases

This is a discussion on test cases within the C Programming forums, part of the General Programming Boards category; hey guys, can anyone give me the test cases to test 1. State of the art Micro processor embedded Toaster ...

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    12

    test cases

    hey guys,
    can anyone give me the test cases to test

    1. State of the art Micro processor embedded Toaster
    2. Microprocessor Embedded Elevator system?

  2. #2
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    erm..sure
    The world is waiting. I must leave you now.

  3. #3
    Evil Sock Puppet MadHatter's Avatar
    Join Date
    Nov 2002
    Posts
    176
    i can't

    but seriously... what, pray tell, are you talking about?

  4. #4
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    1) 2 slices of bread
    2) a small elephant
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  5. #5
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Code:
    if( toaster.toast.color == COLOR_CHARCOAL || toaster.toast.flambing == TRUE )
    {
        toaster.springtension *= 100;
        toaster.eject = TRUE;
    }
    That should get you started...

    Quzah.
    Hope is the first step on the road to disappointment.

  6. #6
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    The only test that needs to be done here is a blood alcohol level test on krithi. With any luck this thread will be closed very soon...

  7. #7
    Registered User
    Join Date
    Oct 2002
    Posts
    12
    if anyone knows about the test cases for coke machine can they help me with the toaster problem too?
    thanx

  8. #8
    Registered User
    Join Date
    Oct 2002
    Posts
    12

    Testing issues

    if anyone knows about the test cases for coke machine can they help me with the toaster problem too?
    thanx

  9. #9
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Stop posting new threads with the same basic topic. You need to clarify yourself by what you mean as a "test case".

    I'm assuming it's amazingly simplistic to figure out the answer here. Seriously, what happens in a coke machine?

    1) You put a coin or bill in.
    2) The LED lights up telling you how much money you have.
    3) You press a button.
    4) The machine either:
    ... a) Flashes a light if there is nothing to dispense in what you press.
    ... b) Drops a drink.
    5) Spits out change.

    So given that, what's so difficult about figuring out test cases?

    Quzah.
    Hope is the first step on the road to disappointment.

  10. #10
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    I think we can all read your question and assume what it is that you mean, but you should also realize that we aren't in class with you. For future reference you should be sure to ask you questions clearly.

  11. #11
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    > Flashes a light if there is nothing to dispense in what you press.
    if ( Coke <= 0 || MoneyAmount < CostOfDrink )
    Print("%s", CostOfButton)
    else
    DispensePop()
    MinusFunds()

    There's a test case to fool with. It might not be _exactly_ what you need, but it should get you started.
    The world is waiting. I must leave you now.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. sustring test puzzle
    By WDT in forum C# Programming
    Replies: 3
    Last Post: 06-29-2009, 07:19 AM
  2. Help needed to verify a new on-line C test
    By JanHruska in forum Projects and Job Recruitment
    Replies: 15
    Last Post: 06-20-2009, 06:48 AM
  3. Question About Linker Errors In Dev-C++
    By ShadowMetis in forum C++ Programming
    Replies: 9
    Last Post: 08-18-2004, 08:42 PM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM
  5. I need to use 0 to quit a program
    By cwest in forum C Programming
    Replies: 2
    Last Post: 12-15-2001, 07:37 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21