• + 0 comments

    Live by the library, die by the library I guess.

    I was working with Swift, and Foundation has a spell out style number formatter. So I decided to use it.

    Passed all the "open" test cases, failed two of the locked ones. Made the example section into another batch of test cases, and low and behold I was generating "twenty-eight minutes past five" and the example had no dash.

    So anyone else deciding to save time by using the built in Foundation number formatter (hey if it were a real world job I would be upset at a PR trying to spell out numbers and not just using the libary without good reason!) should be aware they need to post process hyphens into spaces....