-
Notifications
You must be signed in to change notification settings - Fork 511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thoroughly test prototype rule classifiers #210
Comments
@micchickenburger are you interested in taking this work item? |
I suggest starting with TextInput. See Oppia web for how we test TextInput now, and ExplorationProgressControllerTest for how we write Robolectric tests in Android. |
…1244) * Added test file for TextInputEquals * Wrote tests; All tests pass * Fixed ktline errors * Fixed naming of constants * Fixed typo in STRING_VALUE_TEXT_SINGLE_SPACES constant * Removed TODO in TextInputEqualsRuleClassifierProvider.kt
…1251) * Wrote tests, all tests pass, no ktlint errors * Added tests for spacing differences and no input * Inlined most constants to add more context within tests * Added empty string tests * Deleted TODO in TextInputContainsRuleClassifierProvider.kt * Inlined STRING_ANSWER constant
* Wrote tests, still need debugging * All tests now pass * Fixed ktlint errors * Removed unnecessary line; Changed non negative to positive * Changed epsilon range comments to be inline; Made epsilon public and referenced it directly * Removed TODO in NumericInputEqualsRuleClassifierProvider.kt * Added KDoc comment and changed name of constant
@prayutsu this is something you can start with. |
@prayutsu one classifier should only have one PR. You can take a look at existing tests for this |
@aggarwalpulkit596 I looked into it carefully. Can you please suggest for which classifier test should I go? Perhaps the easiest one |
You can start with anyone you feel like there is no such thing as easiest one |
…ierProvider (#1758) * check fork * local develop branch synced with remote branch * Added tests for NumericInputIsGreaterThanRuleClassifierProvider * fixed lint error
…assifierProvider (#1775) * check fork * local develop branch synced with remote branch * Added tests for NumericInputIsLessThanOrEqualToRuleClassifierProvider * Added more tests for Integers
…assifierProvider (oppia#1758) * check fork * local develop branch synced with remote branch * Added tests for NumericInputIsGreaterThanRuleClassifierProvider * fixed lint error
…uleClassifierProvider (oppia#1775) * check fork * local develop branch synced with remote branch * Added tests for NumericInputIsLessThanOrEqualToRuleClassifierProvider * Added more tests for Integers
…le (#1750) * check fork * local develop branch synced with remote branch * file added * added basic tests * Wrote some tests * Fixed ktlint errors and Robolectric tests errors * Fixed all ktlint errors * Implemented suggested changes and removed TO-DO from the corresponding file * Added more tests for Integers * fixed a nit change * Removed TO-DO as it didn't get remove in the previous commits
…Provider (#1774) * check fork * local develop branch synced with remote branch * Added tests for NumericInputIsLessThanRuleClassifierProvider * Added more tests for Integers
…ClassifierProvider (#1807) * Add tests for NumericInputIsInclusivelyBetweenRuleClassifierProvider * fixed lint issues * fixed suggested changes * fixed nits
…IsEquivalentToRuleClassifierProviderTest (#2221) * Update so test names and numbers match what is tested * Update so test names and numbers match what is tested * Rename test to fit line limit * Add test for equivalent mixed num & fraction, clarify test naming, remove redundant tests * Shorten test name
Since the rule classifiers were copied from Oppia web, they didn't have corresponding tests added to verify correctness. These should be ported over from Oppia web as well to ensure that each classifier has working functionality.
Fraction Input
Items Selection Input
Multiple Choice Input
Number With Units
Numeric Input
Text Input
The text was updated successfully, but these errors were encountered: