-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch from error strings to error identifiers
- Loading branch information
Showing
16 changed files
with
88 additions
and
63 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
function mark(error: string) { | ||
return "\u2603 " + error + " \u2603"; | ||
} | ||
|
||
export const MISSING_PERCENT_ERROR = mark("MISSING_PERCENT_ERROR"); | ||
export const NEEDS_TO_BE_SIMPLIFIED_ERROR = mark( | ||
"NEEDS_TO_BE_SIMPLIFIED_ERROR", | ||
); | ||
export const APPROXIMATED_PI_ERROR = mark("APPROXIMATED_PI_ERROR"); | ||
export const EXTRA_SYMBOLS_ERROR = mark("EXTRA_SYMBOLS_ERROR"); | ||
export const WRONG_CASE_ERROR = mark("WRONG_CASE_ERROR"); | ||
export const WRONG_LETTER_ERROR = mark("WRONG_LETTER_ERROR"); | ||
export const MULTIPLICATION_SIGN_ERROR = mark("MULTIPLICATION_SIGN_ERROR"); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
export {default as KhanAnswerTypes} from "./util/answer-types"; | ||
export type {Score} from "./util/answer-types"; | ||
export { | ||
APPROXIMATED_PI_ERROR, | ||
EXTRA_SYMBOLS_ERROR, | ||
MISSING_PERCENT_ERROR, | ||
NEEDS_TO_BE_SIMPLIFIED_ERROR, | ||
WRONG_CASE_ERROR, | ||
WRONG_LETTER_ERROR, | ||
MULTIPLICATION_SIGN_ERROR, | ||
} from "./error-identifiers"; |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,7 +76,6 @@ function scoreExpression( | |
simplify: answer.simplify, | ||
form: answer.form, | ||
}), | ||
strings, | ||
); | ||
}; | ||
|
||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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