Fix a bug caused by the previous PR, which broken rrobin method since the priority column should not include students' name.
Provide the exception handling when rrobin is called with the list of list that only contains student names. This fixes the original reason for making the bug above. If the input list only contains names, it will run random.
Provide the generalized run interface to improve the structure in CLI and make all functions can be called easier in web interface.
Provide test case for the interface method above.
Fixed a bug that random method will always provide the same output if it is used by web interface
Type of Change
Please describe the pull request as one of the following:
Description of Pull Request
rrobin
method since the priority column should not include students' name.rrobin
is called with the list of list that only contains student names. This fixes the original reason for making the bug above. If the input list only contains names, it will runrandom
.random
method will always provide the same output if it is used by web interfaceType of Change
Please describe the pull request as one of the following:
Tags
@Lancasterwu @paladp @barrezuetai