Closed Lancasterwu closed 5 years ago
This bug should be solved. I modified the if condition in order to account for the group sizes of 0 and 1. I also modified the respective tests to make sure they properly handle these sizes. This will be merged with the refactoring and debgging of parse_arguments.py Issue #184
@baldeosinghm will handle this. He and I discussed the implementation of the if statement and developed a new statement that will properly be handled by the tests. if numgrp <= 1 or numgrp > students_list_length:
This issue was handled by PR #226
Based on Issue https://github.com/GatorEducator/gatorgrouper/issues/184, I found that:
The function
parse_argument.py
has a bug incheck_valid_num_group
which allows the program to handle input--num-group 0
and--num-group 1
, It should not be able to.This is a bug because spliting the class to 0 group or 1 group does not make any sense. Because of this,
test_check_number_groups_size_zero
andtest_check_number_groups_size_one
intest_num_group.py
are currently passing, which they shouldn't.@reibelj will make a PR to fix this bug and the related test functions.