Closed bmcutler closed 3 years ago
@bmcutler "common" match type is only possible when we have atleast 20 users with same code/text. So I guess I need to 20 students submissions for each language. Made it for plaintext and tested it on interface. Shows matches as expected.
For python, added common and suspicious code. But unique code is difficult as there are 20 students. Should I skip unique code?
Is the number 20 hardcoded? Probably. It should be connected to the "Threshold to be considered plagiarism" from the configuration. To make it easier to write these tests, we should set that number to 2, or 3, or 5, as appropriate to test the functionality. In a real course, the instructor will likely set this number to 5 or 10 or even larger for a class of 100 or more.
In the lichen repo, make a tests top level folder Inside have files: tests/submissions/python/student_a/1/foo.py tests/submissions/python/student_a/2/foo.py tests/submissions/python/student_b/1/foo.py