Learn R Programming

gradeR (version 2.0.1)

extractCriterionLabel: Extract criterion label from assertion.

Description

Internal helper function that extracts custom labels from test expectations.

Usage

extractCriterionLabel(assertion, default_label)

Value

A string with the criterion label

Arguments

assertion

the expectation assertion object

default_label

fallback label if none found