Skip to content

Commit

Permalink
fixed package name in tests ("de" instead of "da")
Browse files Browse the repository at this point in the history
  • Loading branch information
comahe-de committed Mar 26, 2024
1 parent 5a6c384 commit 5c094b4
Show file tree
Hide file tree
Showing 44 changed files with 64 additions and 125 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package da.comahe.i18n4k.cldr.plurals
package de.comahe.i18n4k.cldr.plurals

@Suppress("ConstPropertyName")
object JsonTestData {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// except according to those terms.

// converted to Kotlin MP by Marcel Heckel
package da.comahe.i18n4k.cldr.plurals
package de.comahe.i18n4k.cldr.plurals

import de.comahe.i18n4k.country
import de.comahe.i18n4k.forLocaleTag
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package da.comahe.i18n4k.messages.formatter
package de.comahe.i18n4k.messages.formatter

import de.comahe.i18n4k.Locale
import de.comahe.i18n4k.config.I18n4kConfigDefault
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package da.comahe.i18n4k.messages.formatter
package de.comahe.i18n4k.messages.formatter

import de.comahe.i18n4k.messages.MessageBundle
import kotlin.jvm.JvmField
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package da.comahe.i18n4k.messages.formatter
package de.comahe.i18n4k.messages.formatter

import de.comahe.i18n4k.forLocaleTag
import de.comahe.i18n4k.messages.providers.MessagesProvider
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package da.comahe.i18n4k.messages.formatter
package de.comahe.i18n4k.messages.formatter

import de.comahe.i18n4k.forLocaleTag
import de.comahe.i18n4k.messages.providers.MessagesProvider
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package da.comahe.i18n4k.messages.formatter
package de.comahe.i18n4k.messages.formatter

import de.comahe.i18n4k.forLocaleTag
import de.comahe.i18n4k.messages.providers.MessagesProvider
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package da.comahe.i18n4k
package de.comahe.i18n4k

import de.comahe.i18n4k.Locale
import de.comahe.i18n4k.config.I18n4kConfigDefault
import de.comahe.i18n4k.forLocaleTag
import de.comahe.i18n4k.i18n4k
import de.comahe.i18n4k.strings.plus
import kotlin.test.BeforeTest
import kotlin.test.Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
package da.comahe.i18n4k
package de.comahe.i18n4k

import de.comahe.i18n4k.Locale
import de.comahe.i18n4k.country
import de.comahe.i18n4k.language
import de.comahe.i18n4k.lessSpecificLocale
import de.comahe.i18n4k.rootLocale
import de.comahe.i18n4k.toTag
import de.comahe.i18n4k.variant
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertNotNull
import kotlin.test.assertNull
import kotlin.test.assertSame

class LocaleTest {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
package da.comahe.i18n4k

import de.comahe.i18n4k.Locale
import de.comahe.i18n4k.country
import de.comahe.i18n4k.createLocale
import de.comahe.i18n4k.forLocaleTag
import de.comahe.i18n4k.getDisplayNameInLocale
import de.comahe.i18n4k.language
import de.comahe.i18n4k.rootLocale
import de.comahe.i18n4k.script
import de.comahe.i18n4k.toTag
import de.comahe.i18n4k.variant
package de.comahe.i18n4k

import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFails
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package da.comahe.i18n4k
package de.comahe.i18n4k

import de.comahe.i18n4k.forLocaleTag
import de.comahe.i18n4k.strings.LocalizedAttributeMap
import de.comahe.i18n4k.strings.LocalizedStringFactoryMap
import de.comahe.i18n4k.strings.LocalizedStringMap
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package da.comahe.i18n4k
package de.comahe.i18n4k

import de.comahe.i18n4k.Locale
import de.comahe.i18n4k.i18n4k
import de.comahe.i18n4k.config.I18n4kConfigDefault
import de.comahe.i18n4k.strings.LocalizedStringNumber
import de.comahe.i18n4k.strings.LocalizedStringNumber.Companion.getFormattedArea
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package da.comahe.i18n4k
package de.comahe.i18n4k

import de.comahe.i18n4k.Locale
import de.comahe.i18n4k.config.I18n4kConfigDefault
import de.comahe.i18n4k.forLocaleTag
import de.comahe.i18n4k.i18n4k
import de.comahe.i18n4k.messages.formatter.MessageParametersMap
import kotlin.test.BeforeTest
import kotlin.test.Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package da.comahe.i18n4k
package de.comahe.i18n4k

import de.comahe.i18n4k.Locale
import de.comahe.i18n4k.config.I18n4kConfigDefault
import de.comahe.i18n4k.forLocaleTag
import de.comahe.i18n4k.i18n4k
import de.comahe.i18n4k.messages.formatter.MessageFormatterDefault.format
import de.comahe.i18n4k.messages.formatter.MessageParametersMap
import kotlin.test.BeforeTest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package da.comahe.i18n4k
package de.comahe.i18n4k

import de.comahe.i18n4k.Locale
import de.comahe.i18n4k.config.I18n4kConfigDefault
import de.comahe.i18n4k.i18n4k
import de.comahe.i18n4k.messages.formatter.MessageFormatterDefault.format
import kotlin.test.BeforeTest
import kotlin.test.Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package da.comahe.i18n4k
package de.comahe.i18n4k

import de.comahe.i18n4k.config.I18n4kConfigDefault
import de.comahe.i18n4k.i18n4k
import de.comahe.i18n4k.messages.formatter.parsing.MessageParseException
import de.comahe.i18n4k.messages.formatter.parsing.MessageParser
import de.comahe.i18n4k.messages.formatter.parsing.MessagePart
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package da.comahe.i18n4k
package de.comahe.i18n4k

import de.comahe.i18n4k.Locale
import de.comahe.i18n4k.config.I18n4kConfigDefault
import de.comahe.i18n4k.i18n4k
import de.comahe.i18n4k.messages.formatter.MessageFormatterDefault.format
import kotlin.test.BeforeTest
import kotlin.test.Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package da.comahe.i18n4k
package de.comahe.i18n4k

import de.comahe.i18n4k.messages.MessageBundle
import kotlin.jvm.JvmField
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package de.comahe.i18n4k

import de.comahe.i18n4k.messages.MessageBundle
import kotlin.jvm.JvmField

object MessageTestDuplicateKey : MessageBundle() {

/* yes */
@JvmField
val YES = getLocalizedString0("YES", 0)

/* no */
@JvmField
val YES2 = getLocalizedString0("YES", 1)


init {
registerMessageBundleEntries(YES, YES2)
}

}
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package da.comahe.i18n4k
package de.comahe.i18n4k

import de.comahe.i18n4k.Locale
import de.comahe.i18n4k.config.I18n4kConfigDefault
import de.comahe.i18n4k.i18n4k
import de.comahe.i18n4k.messages.formatter.MessageFormatterDefault.format
import kotlin.test.BeforeTest
import kotlin.test.Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package da.comahe.i18n4k
package de.comahe.i18n4k

class MessagesProviderLoaderTest {
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package da.comahe.i18n4k
package de.comahe.i18n4k

import de.comahe.i18n4k.Locale
import de.comahe.i18n4k.i18n4k
import de.comahe.i18n4k.messages.providers.MessagesProviderViaText
import de.comahe.i18n4k.config.I18n4kConfigDefault
import kotlin.test.BeforeTest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package da.comahe.i18n4k
package de.comahe.i18n4k

import de.comahe.i18n4k.Locale
import de.comahe.i18n4k.messages.providers.MessagesProvider
import kotlin.jvm.JvmStatic

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package da.comahe.i18n4k
package de.comahe.i18n4k

import de.comahe.i18n4k.Locale
import de.comahe.i18n4k.messages.providers.MessagesProvider
import kotlin.jvm.JvmStatic

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package da.comahe.i18n4k
package de.comahe.i18n4k

import de.comahe.i18n4k.Locale
import de.comahe.i18n4k.messages.providers.MessagesProvider
import kotlin.jvm.JvmStatic

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package da.comahe.i18n4k
package de.comahe.i18n4k

import de.comahe.i18n4k.Locale
import de.comahe.i18n4k.messages.providers.MessagesProvider
import kotlin.jvm.JvmStatic

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package da.comahe.i18n4k
package de.comahe.i18n4k

import de.comahe.i18n4k.Locale
import de.comahe.i18n4k.messages.providers.MessagesProvider
import kotlin.jvm.JvmStatic

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package da.comahe.i18n4k
package de.comahe.i18n4k

import de.comahe.i18n4k.messages.NameToIndexMapperList
import de.comahe.i18n4k.messages.NameToIndexMapperMap
import kotlin.test.Test
import kotlin.test.assertEquals

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
package da.comahe.i18n4k
package de.comahe.i18n4k

import de.comahe.i18n4k.messages.NameToIndexMapperList
import de.comahe.i18n4k.messages.NameToIndexMapperMap
import de.comahe.i18n4k.messages.NameToIndexMapperNumbersFrom0
import de.comahe.i18n4k.messages.NameToIndexMapperNumbersFrom1
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith

class NameToIndexMapperMapTest {
@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package da.comahe.i18n4k
package de.comahe.i18n4k

import de.comahe.i18n4k.messages.NameToIndexMapperNumbersFrom0
import de.comahe.i18n4k.messages.NameToIndexMapperNumbersFrom1
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package da.comahe.i18n4k
package de.comahe.i18n4k

import de.comahe.i18n4k.messages.NameToIndexMapperNumbersFrom1
import kotlin.test.Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package da.comahe.i18n4k.attribs
package de.comahe.i18n4k.attribs

import de.comahe.i18n4k.Locale
import de.comahe.i18n4k.config.I18n4kConfigDefault
Expand All @@ -7,7 +7,6 @@ import de.comahe.i18n4k.i18n4k
import de.comahe.i18n4k.messages.formatter.provider.DeclensionProvider
import de.comahe.i18n4k.messages.formatter.provider.GenderProvider
import de.comahe.i18n4k.strings.LocalizedAttributeMap
import de.comahe.i18n4k.strings.LocalizedStringMap
import kotlin.test.BeforeTest
import kotlin.test.Test
import kotlin.test.assertEquals
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package da.comahe.i18n4k.attribs
package de.comahe.i18n4k.attribs

import de.comahe.i18n4k.messages.MessageBundle
import kotlin.jvm.JvmField
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package da.comahe.i18n4k.attribs
package de.comahe.i18n4k.attribs

import de.comahe.i18n4k.messages.MessageBundle
import kotlin.jvm.JvmField
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package da.comahe.i18n4k.attribs
package de.comahe.i18n4k.attribs

import de.comahe.i18n4k.forLocaleTag
import de.comahe.i18n4k.messages.providers.MessagesProvider
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package da.comahe.i18n4k.attribs
package de.comahe.i18n4k.attribs

import de.comahe.i18n4k.forLocaleTag
import de.comahe.i18n4k.messages.providers.MessagesProvider
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package da.comahe.i18n4k.attribs
package de.comahe.i18n4k.attribs

import de.comahe.i18n4k.forLocaleTag
import de.comahe.i18n4k.messages.providers.MessagesProvider
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package da.comahe.i18n4k.attribs
package de.comahe.i18n4k.attribs

import de.comahe.i18n4k.forLocaleTag
import de.comahe.i18n4k.messages.providers.MessagesProvider
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package da.comahe.i18n4k.attribs
package de.comahe.i18n4k.attribs

import de.comahe.i18n4k.forLocaleTag
import de.comahe.i18n4k.messages.providers.MessagesProvider
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package da.comahe.i18n4k.attribs
package de.comahe.i18n4k.attribs

import de.comahe.i18n4k.forLocaleTag
import de.comahe.i18n4k.messages.providers.MessagesProvider
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package da.comahe.i18n4k.attribs
package de.comahe.i18n4k.attribs

import de.comahe.i18n4k.forLocaleTag
import de.comahe.i18n4k.messages.providers.MessagesProvider
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package da.comahe.i18n4k.attribs
package de.comahe.i18n4k.attribs

import de.comahe.i18n4k.forLocaleTag
import de.comahe.i18n4k.messages.providers.MessagesProvider
Expand Down
Loading

0 comments on commit 5c094b4

Please sign in to comment.