[SOLVED] CSE308 Assignment # 5-Writing Test Scripts

30.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Testing-lv8l4m.zip (20.1 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
Rate this product

Assignment 5 Writing Test Scripts

Write a function that takes several numbers in any list data structure, sorts them in ascending order and returns the sorted list. You are to do unit test by writing a test driver using any programming language. Use of any unit testing tool or framework will be appreciated.

Test outcome will be successful by checking the following:

  1. i)  Test whether the list of the numbers are not altered by the testing routine
  2. ii)  Test whether sorting is done in the correct order

You have to write the test script for generating the following categories of test data:

  1. i)  Sorting a blank list
  2. ii)  Sorting just one number
  3. iii)  Sorting two numbers
  4. iv)  The size of the list is initialized randomly
  5. v)  The numbers in the list is initialized randomly
  6. vi)  The numbers in the is sorted in ascending order
  7. vii)  The numbers in the is sorted in descending order
  8. viii)  All the numbers in the list are equal
  • Testing-lv8l4m.zip