Konstantin Tskhovrebov
2 months ago
8 changed files with 133 additions and 112 deletions
@ -0,0 +1,9 @@
|
||||
version:0 |
||||
plurals|another_plurals|ONE:YW5vdGhlciBvbmU=,OTHER:YW5vdGhlciBvdGhlcg== |
||||
plurals|messages|ONE:JTEkZCBtZXNzYWdlIGZvciAlMiRz,OTHER:JTEkZCBtZXNzYWdlcyBmb3IgJTIkcw== |
||||
plurals|plurals|ONE:b25l,OTHER:b3RoZXI= |
||||
string-array|str_arr|aXRlbSAx,aXRlbSAy,aXRlbSAz |
||||
string|accentuated_characters|Q3LDqWVyIHVuZSB0YWJsZQ== |
||||
string|app_name|Q29tcG9zZSBSZXNvdXJjZXMgQXBw |
||||
string|hello|8J+YiiBIZWxsbyB3b3JsZCE= |
||||
string|str_template|SGVsbG8sICUxJHMhIFlvdSBoYXZlICUyJGQgbmV3IG1lc3NhZ2VzLg== |
@ -1,23 +0,0 @@
|
||||
<resources> |
||||
<string name="app_name">Compose Resources App</string> |
||||
<string name="hello">😊 Hello world!</string> |
||||
<string name="accentuated_characters">Créer une table</string> |
||||
<string name="str_template">Hello, %1$s! You have %2$d new messages.</string> |
||||
<string-array name="str_arr"> |
||||
<item>item 1</item> |
||||
<item>item 2</item> |
||||
<item>item 3</item> |
||||
</string-array> |
||||
<plurals name="plurals"> |
||||
<item quantity="one">one</item> |
||||
<item quantity="other">other</item> |
||||
</plurals> |
||||
<plurals name="another_plurals"> |
||||
<item quantity="one">another one</item> |
||||
<item quantity="other">another other</item> |
||||
</plurals> |
||||
<plurals name="messages"> |
||||
<item quantity="one">%1$d message for %2$s</item> |
||||
<item quantity="other">%1$d messages for %2$s</item> |
||||
</plurals> |
||||
</resources> |
@ -0,0 +1,16 @@
|
||||
package org.jetbrains.compose.test.tests.unit |
||||
|
||||
import org.jetbrains.compose.resources.handleSpecialCharacters |
||||
import kotlin.test.Test |
||||
import kotlin.test.assertEquals |
||||
|
||||
class TestEscapedResourceSymbols { |
||||
|
||||
@Test |
||||
fun testEscapedSymbols() { |
||||
assertEquals( |
||||
"abc \n \\n \t \\t \u1234 \ua45f \\u1234 \\ \\u355g", |
||||
handleSpecialCharacters("""abc \n \\n \t \\t \u1234 \ua45f \\u1234 \\ \u355g""") |
||||
) |
||||
} |
||||
} |
Loading…
Reference in new issue