-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
NF: use "note type" in androidTest #17711
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing breaking
@@ -150,7 +150,7 @@ class AbstractFlashcardViewerTest : RobolectricTest() { | |||
fun testEditingCardChangesTypedAnswer() = | |||
runTest { | |||
// 7363 | |||
addNoteUsingBasicTypedModel("Hello", "World") | |||
addBasicTypedNoteType("Hello", "World") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addBasic[Note]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry but I can't guess what change you require here. This is not code I can copy paste at least
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename the method to either addBasic
or addBasicNote
The current proposal is verbose, which detracts from readability
@@ -256,8 +256,8 @@ class AbstractFlashcardViewerTest : RobolectricTest() { | |||
|
|||
LanguageHintService.setLanguageHintForField(col.notetypes, withLanguage, typedField, Locale("ja")) | |||
|
|||
addNoteUsingModelName(withLanguage.getString("name"), "ichi", "ni") | |||
addNoteUsingModelName(normal.getString("name"), "one", "two") | |||
addNoteUsingNoteTypeName(withLanguage.getString("name"), "ichi", "ni") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ignorable: name feels too long. No immediate suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. But the note type "Basic (Type in the answer)" is quite hard to rephrase
addNoteUsingBasicAndReversedModel("Hello", "World") | ||
addNoteUsingBasicAndReversedModel("Hello", "Anki") | ||
addBasicAndReversedNoteType("Hello", "World") | ||
addBasicAndReversedNoteType("Hello", "Anki") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addBasicAndReversedNoteType("Hello", "Anki") | |
addBasicAndReversed("Hello", "Anki") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be "addBasicAndReversedNote". I agree the "type" is too much. It's still nice to be explicitly state its a note that is added
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also removed the "type" at the end of every other changed functions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
2247c6e
to
1d6dd11
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's go
No description provided.