Skip to content

Questions about testing ghost #15

@tBuLi

Description

@tBuLi

In the chapter on functions a low of questions are asked in the style:
write a function such that the following tests work:

day_add("Monday", 4) ==  "Friday"
day_add("Tuesday", 0) == "Tuesday"
day_add("Tuesday", 14) == "Tuesday"
day_add("Sunday", 100) == "Tuesday"

However, these cause a lot of confusion because a lot of students in this stage of their education think these functions should return booleans.

Maybe we should rephrase these questions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions