Understanding I/O Lab Philosophy
Fermion labs are built on the philosophy of having an input and an expected output. In many cases, the expected output can have multiple spaces, line breaks, and other formatting elements. Therefore, it is crucial that you select the right matcher for your specific use case.Available Matchers
There are multiple matchers available in Fermion I/O lab setup that allow you to configure how the expected output of the program is matched with the real output that the user generates:- Exact Match: Use this when you need the output to match exactly, including all spaces, tabs, and line breaks
- Other matchers: Available for different matching requirements
Test Case Configuration
When creating an I/O lab, you can specify some test cases as sample test cases. If you mark a test case as a sample test case, it becomes visible to the end user, allowing them to understand the expected input-output format before attempting the lab.Troubleshooting: Code Output vs Test Case Failure
Common Issue: Right Output, Failing Test Case
If your code produces the correct output but your test case is still failing, please double-check the following:- Spacing Issues: Ensure there are no extra or missing spaces in your expected output
- New Line Issues: Verify that line breaks match exactly between expected and actual output
- Character Issues: Check for any hidden characters, tabs, or different character encodings
