-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Issue Description
The htmlwhat package, used for validating HTML code submissions, is not functioning correctly when I modify the HTML code being tested.
Steps to Reproduce
-
Code Example:
from htmlwhat.test_exercise import test_exercise userhtml = """ <!DOCTYPE html> <html> <head> <title>Title</title> </head> <body class="hello"> <h1>My First Heading</h1> </body> </html> """ solutionhtml = """ <!DOCTYPE html> <html> <head> <title>First Webpage</title> </head> <body class="hello"> <h2>My First Heading</h2> </body> </html> """ test = "Ex().check_body().has_equal_attr()" print(test_exercise( test, userhtml, solutionhtml, ))
Expected Behavior
The test_exercise function should provide accurate feedback on the differences between userhtml and solutionhtml, confirming correctness or pointing out discrepancies based on the test provided (Ex().check_body().has_equal_attr()).
Actual Behavior
Currently, the output from test_exercise does not accurately reflect the correctness of the HTML code when modifications are made to either userhtml or solutionhtml. Instead, it fails to detect changes or provides incorrect feedback.
Additional Information
htmlwhatis typically used in educational contexts to assess HTML assignments.- This issue affects the reliability and functionality of
htmlwhat, which is crucial for providing accurate feedback on HTML correctness.
This issue impacts the reliability and functionality of the feedback mechanism crucial for assessing correctness in HTML submissions.
Metadata
Metadata
Assignees
Labels
No labels