Write any 4 tests cases for traffic signal.

Test Case 1: Red Light Signal Duration
- Test Case ID: TS001
- Test Description: Verify that the Red light stays on for the correct specified duration.
- Test Steps:
1. Start the traffic signal system.
2. Observe the Red light when it turns on.
3. Use a timer to measure how long it stays on.
- Expected Result: The Red light should stay on for the specified time (e.g., 60 seconds).
- Pass/Fail Criteria: Pass if the duration matches 60 seconds; Fail if it is too short or too long.
Test Case 2: Green Light After Red
- Test Case ID: TS002
- Test Description: Verify that the Green light turns on after the Red light and stays for the correct duration.
- Test Steps:
1. Wait for the Red light to turn off.
2. Observe the Green light turning on.
3. Measure how long it stays on using a timer.
- Expected Result: The Green light should turn on immediately after the Red light and stay on for the specified time (e.g., 45 seconds).
- Pass/Fail Criteria: Pass if the Green light follows the Red light and stays for 45 seconds; Fail otherwise.
Test Case 3: Yellow Light Transition
- Test Case ID: TS003
- Test Description: Verify that the Yellow light turns on before switching between Red and Green lights.
- Test Steps:
1. Observe the Yellow light turning on after the Green light.
2. Measure how long the Yellow light stays on.
- Expected Result: The Yellow light should turn on for a short time (e.g., 5 seconds) before changing to Red.
- Pass/Fail Criteria: Pass if the Yellow light is on for the correct time; Fail otherwise.
Test Case 4: Pedestrian Crossing
- Test Case ID: TS004
- Test Description: Verify that the pedestrian crossing signal works correctly.
- Test Steps:
1. Press the pedestrian crossing button.
2. Observe the pedestrian signal (e.g., Green light for crossing).
3. Check if it stops after the crossing duration ends.
- Expected Result: The pedestrian signal should turn Green when the traffic light is Red and stop after the crossing time (e.g., 30 seconds).
- Pass/Fail Criteria: Pass if the pedestrian signal behaves as expected; Fail otherwise.