Skip to main content

Check Collection Equals Collection

Validates that a student's collection is exactly equal to an instructor-provided collection, optionally enforcing a specific type.

Device Type
Jupyter

Variables:

Variable NameVariable DescriptionTypeRequired?Default
student_collection_variable_nameThe name of the student's collection variable.strYes
instructor_collectionThe collection that the student's collection should match exactly. Provide as JSON (e.g. a list) in test_cases.json.anyYes
collection_typeOptional: a Python type to enforce (e.g. 'list'). If omitted, only equality is checked.strNo

Examples: