Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Hello I am in BINF1001 at the moment and I have a question about Assignment1: What exactly are the test cases and what do they achieve – what are they supposed to do?

achieve cases Hello moment Test
0
Posted

Hello I am in BINF1001 at the moment and I have a question about Assignment1: What exactly are the test cases and what do they achieve – what are they supposed to do?

0

Test cases are used to test functions to see whether they are working correctly or not. For example, I have given you an example of a test case to test the count_nodes function, which counts the number of nodes in a robot program tree. The test case simply checks that for several given programs, the function returns the right number of nodes. The functions that you will be writing test cases for are not implemented yet. So your test cases should all fail. Also, note that the code you write for a test case may be quite simple (as in the count_nodes test case) or perhaps a bit more complex as is the case with functions with a random element. I would recommend writing test cases for functions without a random element first. • Some of the robot programs shown in the chapter handout don’t seem to have valid arguments. This assignment deals with untyped robot programs where all arguments are valid. For example, if we have a Not node, we only have to ensure that it has one argument. The type

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123