Skip to content
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

Add maxSize extension support #1688

Merged
merged 17 commits into from
Jan 10, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add tests for maxSizeInKiB and maxSizeInMiB
  • Loading branch information
FikriMilano committed Jan 4, 2023
commit c514d5f247573f9bf653e43af6239903e04decae
Original file line number Diff line number Diff line change
Expand Up @@ -495,11 +495,23 @@ class MoreQuestionnaireItemComponentsTest {
}

@Test
fun maxSize_missingExtension_shouldReturnNull() {
fun maxSizeInByte_missingExtension_shouldReturnNull() {
FikriMilano marked this conversation as resolved.
Show resolved Hide resolved
val questionnaire = Questionnaire.QuestionnaireItemComponent()
assertThat(questionnaire.maxSizeInByte).isNull()
}

@Test
fun maxSizeInKiB_missingExtension_shouldReturnNull() {
val questionnaire = Questionnaire.QuestionnaireItemComponent()
assertThat(questionnaire.maxSizeInKiB).isNull()
}

@Test
fun maxSizeInMiB_missingExtension_shouldReturnNull() {
val questionnaire = Questionnaire.QuestionnaireItemComponent()
assertThat(questionnaire.maxSizeInMiB).isNull()
}

@Test
fun localizedTextSpanned_noText_shouldReturnNull() {
assertThat(Questionnaire.QuestionnaireItemComponent().localizedTextSpanned).isNull()
Expand Down