Repository navigation
A temperature written as a unit gets a useful hint - #6
Merged
Merged
Conversation
25 degC answered: unknown unit, did you mean deg? Now degC, degF, celsius and fahrenheit after a number, and the degree sign, each say to write celsius(25.0) and that a difference is 25 K. Four cases added to tests/unit_hints_test.py (79 of 79). docs/kilat.wasm and main.js rebuilt from this source.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Found by writing day-one engineer programs against 0.2.3:
25 degCansweredunknown unit degC, did you mean deg?, which points at angles.25 °Canswered a bareunexpected character.Now
degC,degF,celsius,fahrenheitafter a number, and the degree sign, say how a temperature is written (celsius(25.0), which gives kelvin) and that a difference is25 K. Nothing that ran before is refused, and nothing that was refused now runs.Checked on Windows before the push:
tests/unit_hints_test.py79 of 79 (4 new),judge.py --quickevery check passed,tests/fuel_location_test.py4 of 4,tests/fuzz_test.py11,608 cases with 0 failures.docs/kilat.wasmandmain.jsare rebuilt from this source (plugin 392,513 characters, under the 400,000 limit).