Skip to content

Exhaustively test and fix formatAs12HourClock #1620

Description

@illicitonion

https://github.com/CodeYourFuture/Module-Structuring-and-Testing-Data/tree/main/format-clock-edge-cases

In the prep, we looked at a formatAs12HourClock function, and we fixed some bugs in it.

It still has bugs. Think of as many edge-cases as you can with this code. Write tests for all of them, and fix this code so that it works correctly for all valid inputs. You don't need to worry about invalid inputs (e.g. "25:00").

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions