forked from icerockdev/moko-resources
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStringResourceRuTests.kt
More file actions
33 lines (27 loc) · 913 Bytes
/
StringResourceRuTests.kt
File metadata and controls
33 lines (27 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* Copyright 2022 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
package com.icerock.library
import com.icerockdev.library.MR
import dev.icerock.moko.resources.desc.desc
import dev.icerock.moko.resources.format
import kotlin.test.Test
class StringResourceRuTests : BaseStringResourceTests("ru") {
@Test
fun checkSimpleString() = stringTest(
expected = "Тестовый проект",
actual = MR.strings.common_name.desc()
)
@Test
fun checkFormattedString() = stringTest(
expected = "Тестовые данные 2",
actual = MR.strings.format.format(2)
)
@Test
fun checkFormattedStringWithStringDesc() = stringTest(
expected = "Привет Тестовый проект",
actual = MR.strings.hello_formatted_string.format(
MR.strings.common_name.desc()
)
)
}