| File Name | Function Name | Description | Expected Error Message(s) | Pass/Fail | |----------------------|-------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------| | pulse_sequence.in | positive_test_1 | Positive Case - Configure the frequency for 2 emitters | | Pass | | pulse_sequence_2.in | positive_test_2 | test to see if the circuit has set pulse sequence for only emitter C or not, which means if emitter A or B's pulse sequence was set, set_pulse_sequence method was not correctly set up. the message list shows what happened and where the error was, only emitter C will be set pulse sequence. | | Pass | | pulse_sequence_3.in | negative_test_1 | test to see if emitter A has been set pulse sequence or not, in this case, if the method set_pulse_sequence was implemented correctly, emitter A should not have been set, but rather to display an error that frequency should be greater than zero. | Error: frequency must be greater than zero | Pass | | pulse_sequence_4.in | negative_test_2 | test to see if the emitter A has been set pulse sequence or not, since the direction is invalid (there is no direction 'G'). | Error: direction must be 'N', 'E', 'S' or 'W' | Pass | | pulse_sequence_5.in | negative_test_3 | test to see if the emitter J has been set pulse sequence or not, since the frequency is less then 0 | Error: symbol is not between 'A'-'J' | Pass | | pulse_sequence_6.in | edge_test_1 | test to see if the the method set_pulse_sequence can correctly output the error when all the emitters in the circuit was set already, but then trying to set pulse sequence for 2 more emitters that are not in the circuit. I added emitter C and D, the method should not let these 2 emitters to be set pulse sequence. | Error: emitter 'E' does not exist and Error: emitter 'D' does not exist | Pass | | pulse_sequence_7.in | edge_test_2 | test to see how the method responds to an input file that contains literal scribbles that does not have any meaning. | "Error: <symbol> <frequency> <direction> Error: symbol is not between 'A'-'J' " | Pass | | pulse_sequence_8.in | edge_test_3 | test to see if there are 2 valid inputs and 1 invalid input, whether or not the method shows the correct emitters that was set pulse sequence. expects emitter B and C (valid inputs) to be set, emitter A not to be set. | Error: direction must be 'N', 'E', 'S' or 'W' | Pass | | pulse_sequence_9.in | edge_test_4 | test to see what the method will do with 3 emitter A. | Error: emitter 'A' does not exist | Pass | | pulse_sequence_10.in | edge_test_5 | test what would happen if there is a blank file, expects to see that none of the emitters are set | Error: <symbol> <frequency> <direction> | Pass | | pulse_sequence_11.in | edge_test_6 | test the frequency as 10**3, it should recognize 10**3 (10^3) as an integer but it did not, due to the try parse integer function that I added | Error: frequency is not an integer | Fail | | pulse_sequence_12.in | edge_test_7 | test to see if the arrangement of emitters list in the circuit was sorted correctly after set pulse sequence for those emitters with different symbols. | | Pass |