Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Test Results:
    Test Passed: Value == 'Bart, Lisa, Maggie, Homer & Marge'
    Test Passed: Value == 'Bart, Lisa & Maggie'
    Test Passed: Value == 'Bart & Lisa'
    Test Passed: Value == 'Bart'
    Test Passed: Value == ''

    However when I attempt:
    Must work with many names - Expected: 'Bart, Lisa, Maggie, Homer & Marge', instead got: 'Bart, Lisa, Maggie, Homer & Marge, '
    Must work with many names - Expected: 'Bart, Lisa & Maggie', instead got: 'Bart, Lisa & Maggie, '
    Must work with two names - Expected: 'Bart & Lisa', instead got: 'Bart & Lisa, '
    Wrong output for a single name - Expected: 'Bart', instead got: 'Bart, '
    Must work with no names - Expected: '', instead got: ', '

    How did the tests work but 0/45 additional tests not work (especially ones that are the same)? When I run in code editor I get back the correct results I received in the test cases.