A developer implements an algorithm designed to perform Run-Length Encoding (RLE) on strings of uppercase alphabetic characters. The algorithm is meant to group consecutive identical characters and output each character followed by its count. For example, the input 'WWXXXY' should output W2X3Y1.
The developer tests their implementation with only one test case:
'GGGGGG'G6The test was successful, but testing with only a single test case is insufficient.
Using example test data, state three further tests that the developer should use to improve the testing of their code. For each test, you must state the input data and the expected output.
27 exam-style questions on AQA GCSE Computer Science Robust and secure programming. Each one has a worked solution and a mark scheme showing where the marks go.