Skip to content

Commit

Permalink
fix: add matrixgrader in the test
Browse files Browse the repository at this point in the history
  • Loading branch information
MaferMazu committed Jan 2, 2025
1 parent a667906 commit 72549e2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions integration_tests/integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

# Define the code to be executed
GRADING_CLASSES_CODE = """
# To test, we can use the custom graders
from mitxgraders import (
StringGrader,
FormulaGrader,
Expand All @@ -34,6 +35,21 @@
SumGrader,
)
# Test the MatrixGrader, the class that uses the most external dependencies
MatrixGrader(
answers='x*A*B*u + z*C^3*v/(u*C*v)',
variables=['A', 'B', 'C', 'u', 'v', 'z', 'x'],
sample_from={
'A': RealMatrices(shape=[2, 3]),
'B': RealMatrices(shape=[3, 2]),
'C': RealMatrices(shape=[2, 2]),
'u': RealVectors(shape=[2]),
'v': RealVectors(shape=[2]),
'z': ComplexRectangle()
},
identity_dim=2
)
"""


Expand Down

0 comments on commit 72549e2

Please sign in to comment.