-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
The current bats tests pass without enforcing interaction with the server. One such solution is shown below where the client writes the information immediately after reading it.
while ((line = System.in.read()) != -1) {
System.out.write(line);
System.out.flush();
}
We could write extensive test that don't allow hacky solutions, but "easy-hacky solutions" like these are likely achieved by mistake rather than on purpose. Especially if the students are learning something brand new and all the tests passing is their indication of validating their code. If we can point out something like "You never connected to the server"(via failing tests if possible), we should be able to prevent any "easy-hacky solutions".
NicMcPhee
Metadata
Metadata
Assignees
Labels
No labels