Skip to content

String repository clearing #122

Answered by B3nedikt
momomomo888 asked this question in Q&A
Discussion options

You must be logged in to vote

This test does check exactly that:

fun shouldGetNoLocalesAndStringsAfterCallingClear() {
val strings = generateStrings(10)
stringRepository.strings[Locale.ENGLISH]?.putAll(strings)
stringRepository.strings[Locale.FRENCH]?.putAll(strings)
stringRepository.strings.clear()
stringRepository.supportedLocales.size shouldBeEqualTo 0
stringRepository.strings.size shouldBeEqualTo 0
}

So I am not sure what is not working for you. Can you clone the repository and either modify the sample app or the test cases to reprod…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by momomomo888
Comment options

You must be logged in to vote
1 reply
@B3nedikt
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants