Skip to content
Gurdeepkumar880 edited this page Nov 2, 2020 · 2 revisions

##UNIT TEST PLANS.

DESCRIBE MID

1.it should return 10 when the array is {1,10,19}

2.it should return 4 when the array is {12,4,8}

3.it should return {jolly, William} when array is {Johnny , jolly, William, Alex}

DESCRIBE TOTAL

1.it should return 10 when array is{5,3,2}

2.it should return 0 when array is empty

3.it should return 2.0 when array is(1.5,0.5,2.5)

DESCRIBE AVERAGE

1.it should return NULL when array is empty

2.it should return 7 when array is{5,7,9}

3.it should return 60 when array is{60.1,60.3,60.4}

DESCRIBE SMALLEST

1.it should return 2 when array is{3,2,6}

2.it should return 0 when array is null.

3.it should return 10 when array is{10,100,1000}

DESCRIBE LARGEST

1.it should return 10 when array is{6,8,10}

2.it should return 0 when array is null.

3.it should return 1000 when array is{10,100,1000}

DESCRIBE MERGE

1.it should return null when the both array is empty

2.it should return{4,-8,10,0} when array is{4,10}and 2array {-8,0}

3.it should return {4,4,8,8} when array is{4,8}and 2array {4,8}

DESCRIBE TAIL

1.it should return 8 when array is{9,3,8}

2.it should return 0 when array is empty.

3.it should return bye when array is{bye}

DESCRIBE PRODUCT

1.it should return 8 when multiply 4 and 2

2.it should return 0 when multiply 0 and 0

3.it should return 6.51 when multiply 2.1 ad 3.1

DESCRIBE MIN

1.it should return 6 when number 6 and 9

2.it should return 10 when number 10 and 10

3.it should return 0.8 when number 2.5 and 0.8

DESCRIBE MAX

1.it should return 9 when number 8 and 9

2.it should return 2 when number 2 and 2

3.it should return 9.5 when number 9.5 and 9.4

DESCRIBE MIN

1.it should return null when array is empty {}

  1. it should return 8 when array is{8, 10, 6}

3.it should return Merci when array is{Merci}

Clone this wiki locally