yoda icon indicating copy to clipboard operation
yoda copied to clipboard

Improve tests

Open manparvesh opened this issue 6 years ago • 5 comments

Description:

The existing tests are okay, but not very thorough. Some of the parts of the modules still lack tests.

Checklist:

  • [x] learn
    • [x] flashcards
  • [ ] life
    • [ ] reading list
    • [ ] ideas
  • [ ] setup

Related to: #16

manparvesh avatar Jan 28 '18 10:01 manparvesh

Hello, I am writing some test cases for the flashcard functionality, but i have a question. Namely with the naming of the sets:

If I try to give the set a name with length of characters larger than 1, i get the error 'the length of the name should not be more than 1', is this the intended functionality? sets cannot have names longer than 1 character? After playing around with the modify function is doesn't seem that this was intended.

ybfe1853 avatar May 28 '18 05:05 ybfe1853

Also if it so happens that changed need to be made to the source code, should i open up separate pull requests for the test cases and the actual source code being changed?

ybfe1853 avatar May 28 '18 05:05 ybfe1853

@ybfe1853

If I try to give the set a name with length of characters larger than 1, i get the error 'the length of the name should not be more than 1', is this the intended functionality?

I don't recall setting any limit like that :thinking:

Also if it so happens that changed need to be made to the source code, should i open up separate pull requests for the test cases and the actual source code being changed?

If you mean that you want to create a new PR for the fix for restoring the length of set name, then yes. Also, please create an issue with some more details of whatever you found in that issue.

manparvesh avatar May 29 '18 03:05 manparvesh

Hi @manparvesh, i would like to contribute on testing ideas feature.

prideloki avatar Oct 13 '18 10:10 prideloki

@prideloki Sure! I'd be glad to review your PR!

manparvesh avatar Oct 14 '18 03:10 manparvesh