|
1 |
| -package io.github.cleverlance.linguine.linguinegenerator |
| 1 | +package com.qinshift.linguine.linguinegenerator |
2 | 2 |
|
| 3 | +import io.kotest.matchers.shouldBe |
3 | 4 | import kotlin.io.path.Path
|
4 | 5 | import kotlin.test.Test
|
5 | 6 | import kotlin.test.assertEquals
|
@@ -34,7 +35,7 @@ class FileContentGeneratorTest {
|
34 | 35 | val expected = """
|
35 | 36 | package presentation
|
36 | 37 |
|
37 |
| - import io.github.cleverlance.linguine.linguineruntime.presentation.Localiser.localise |
| 38 | + import com.qinshift.linguine.linguineruntime.presentation.Localiser.localise |
38 | 39 | import kotlin.String
|
39 | 40 |
|
40 | 41 | public object Settings {
|
@@ -71,7 +72,7 @@ class FileContentGeneratorTest {
|
71 | 72 | val expected = """
|
72 | 73 | package presentation
|
73 | 74 |
|
74 |
| - import io.github.cleverlance.linguine.linguineruntime.presentation.Localiser.localise |
| 75 | + import com.qinshift.linguine.linguineruntime.presentation.Localiser.localise |
75 | 76 | import kotlin.String
|
76 | 77 |
|
77 | 78 | public object Section {
|
@@ -105,7 +106,7 @@ class FileContentGeneratorTest {
|
105 | 106 | val expected = """
|
106 | 107 | package presentation
|
107 | 108 |
|
108 |
| - import io.github.cleverlance.linguine.linguineruntime.presentation.Localiser.localise |
| 109 | + import com.qinshift.linguine.linguineruntime.presentation.Localiser.localise |
109 | 110 | import kotlin.String
|
110 | 111 |
|
111 | 112 | public object Deep {
|
@@ -142,7 +143,7 @@ class FileContentGeneratorTest {
|
142 | 143 | val expected = """
|
143 | 144 | package presentation
|
144 | 145 |
|
145 |
| - import io.github.cleverlance.linguine.linguineruntime.presentation.Localiser.localise |
| 146 | + import com.qinshift.linguine.linguineruntime.presentation.Localiser.localise |
146 | 147 | import kotlin.String
|
147 | 148 |
|
148 | 149 | public object Strings {
|
@@ -175,7 +176,7 @@ class FileContentGeneratorTest {
|
175 | 176 | val expected = """
|
176 | 177 | package presentation
|
177 | 178 |
|
178 |
| - import io.github.cleverlance.linguine.linguineruntime.presentation.Localiser.localise |
| 179 | + import com.qinshift.linguine.linguineruntime.presentation.Localiser.localise |
179 | 180 | import kotlin.Int
|
180 | 181 | import kotlin.String
|
181 | 182 |
|
@@ -221,7 +222,7 @@ class FileContentGeneratorTest {
|
221 | 222 | val expected = """
|
222 | 223 | package presentation
|
223 | 224 |
|
224 |
| - import io.github.cleverlance.linguine.linguineruntime.presentation.Localiser.localise |
| 225 | + import com.qinshift.linguine.linguineruntime.presentation.Localiser.localise |
225 | 226 | import kotlin.String
|
226 | 227 |
|
227 | 228 | public object Strings {
|
@@ -296,7 +297,7 @@ class FileContentGeneratorTest {
|
296 | 297 | val expected = """
|
297 | 298 | package presentation
|
298 | 299 |
|
299 |
| - import io.github.cleverlance.linguine.linguineruntime.presentation.Localiser.localise |
| 300 | + import com.qinshift.linguine.linguineruntime.presentation.Localiser.localise |
300 | 301 | import kotlin.String
|
301 | 302 |
|
302 | 303 | public object Strings {
|
@@ -366,31 +367,31 @@ class FileContentGeneratorTest {
|
366 | 367 | generator.generateFileContent(outputDirectory.resolve("Strings.kt"), "Strings", root)
|
367 | 368 |
|
368 | 369 | val expected = """
|
369 |
| - package presentation |
370 |
| -
|
371 |
| - import io.github.cleverlance.linguine.linguineruntime.presentation.Localiser.localise |
372 |
| - import kotlin.Float |
373 |
| - import kotlin.Int |
374 |
| - import kotlin.String |
375 |
| -
|
376 |
| - public object Strings { |
377 |
| - public object Activation { |
378 |
| - public object ForgottenPassword { |
379 |
| - public object Birthdate { |
380 |
| - public fun cancelButton( |
381 |
| - param1: String, |
382 |
| - param2: Int, |
383 |
| - param3: Float, |
384 |
| - param4: String, |
385 |
| - param5: Int, |
386 |
| - param6: Float, |
387 |
| - ): String = localise("activation__forgotten_password__birthdate__cancel_button", |
388 |
| - param1, param2, param3, param4, param5, param6) |
| 370 | + package presentation |
| 371 | + |
| 372 | + import com.qinshift.linguine.linguineruntime.presentation.Localiser.localise |
| 373 | + import kotlin.Float |
| 374 | + import kotlin.Int |
| 375 | + import kotlin.String |
| 376 | + |
| 377 | + public object Strings { |
| 378 | + public object Activation { |
| 379 | + public object ForgottenPassword { |
| 380 | + public object Birthdate { |
| 381 | + public fun cancelButton( |
| 382 | + param1: String, |
| 383 | + param2: Int, |
| 384 | + param3: Float, |
| 385 | + param4: String, |
| 386 | + param5: Int, |
| 387 | + param6: Float, |
| 388 | + ): String = localise("activation__forgotten_password__birthdate__cancel_button", |
| 389 | + param1, param2, param3, param4, param5, param6) |
| 390 | + } |
389 | 391 | }
|
390 | 392 | }
|
391 | 393 | }
|
392 |
| - } |
393 |
| - """ |
394 |
| - assertEquals(expected.trimIndent(), result.trimIndent()) |
| 394 | + """ |
| 395 | + result.trimIndent() shouldBe expected.trimIndent() |
395 | 396 | }
|
396 | 397 | }
|
0 commit comments