Skip to content

Conversation

@PhilippImhof
Copy link
Collaborator

Replacing the entire unit conversion code takes time. The aim of this PR is to write a compatibility layer that uses the new parsing system for analysis of unit expressions. We can use this to quickly validate student input (and teacher input in the edit form) and do proper MathJax rendering in quizzes.

The code will convert the input into a string that can be passed to the legacy unit conversion code, allowing to keep the old system in place for a while.

@coveralls
Copy link

coveralls commented Apr 13, 2025

Pull Request Test Coverage Report for Build 14473980547

Details

  • 150 of 153 (98.04%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.08%) to 95.886%

Changes Missing Coverage Covered Lines Changed/Added Lines %
questiontype.php 5 6 83.33%
question.php 7 9 77.78%
Totals Coverage Status
Change from base Build 14473443742: 0.08%
Covered Lines: 3916
Relevant Lines: 4084

💛 - Coveralls

@PhilippImhof PhilippImhof force-pushed the unit-compat-layer branch 3 times, most recently from e208038 to 845d247 Compare April 15, 2025 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants