Let us assume we have 3 students in a class who have secured the below marks.
=============================================== | | Maths | English | Science | Rank | |---------------------------------------------- |Mark | 60 | 40 | 80 | 2 | |---------------------------------------------- |John | 40 | 30 | 50 | 3 | |---------------------------------------------- |Alice | 60 | 60 | 70 | 1 | ===============================================
Normally the rank is decided by adding all three marks. Looking at the above table, the rank sequence would be Alice, Mark, John.
If there exists a system that takes student marks as input and lists the student names based on their rank, then how do I test such system whether it returns correct student list or not for all possible data set?
What should be the approach to test such a system? Generating all possible combinations of data would be exhaustive when the number of students and subjects increase.