Skip to content

check_function messaging according to how student called the function #279

Description

@filipsch

Suppose the following solution and SCT:

# solution
round(1.1234)

# sct
Ex().check_function('round').check_args('number').has_equal_value()

Depending on how the student called the function, the feedback should be different:

round(2.345)    # --> Check the first argument to round
round(number = 2.345) # --> Check the number argument

Currently, this messaging can only be affected by explicitly referring to the argument by position or by name. So currently, it's the SCT that decides which message is generated in case of an error.

Activity

  1. self-assigned this
    on Jun 12, 2018
  2. removed their assignment
    on Sep 13, 2018
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

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions