Skip to content

Caesar test case suggestion #161

Closed as not planned
Closed as not planned
@lnevesabrantes

Description

@lnevesabrantes

I wrote a version of the Caesar code without the ctype library (no isdigit). It iterates over the characters in the argument and checks if they are digits using this condition:

if (argv[1][i] <= '0' || argv[1][i] >= '9')

This is wrong: it rejects 0 and 9 too. But check50 doesn't complain. Suggestion: write test cases using 0 or 9 as key.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CS50xCS50xbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions