Skip to content

Commit

Permalink
core: Init unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sirambd committed Jul 2, 2024
1 parent 0b9e571 commit f2d7f05
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ class AndroidGreetingTest {

@Test
fun testExample() {
assertTrue("Check Android is mentioned", Greeting().greet().contains("Android"))
assertTrue("Check platform is android", getPlatform().name.contains("Android"))
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
package com.infomaniak.multiplatform_swisstransfer.common

import kotlin.test.Test
import kotlin.test.assertTrue
import kotlin.test.assertEquals

class CommonGreetingTest {

@Test
fun testExample() {
assertTrue(Greeting().greet().contains("Hello"), "Check 'Hello' is mentioned")
assertEquals(4, 2 + 2, "Check for correct addition")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
package com.infomaniak.multiplatform_swisstransfer.common

import kotlin.test.Test
import kotlin.test.assertTrue
import kotlin.test.assertEquals

class IosGreetingTest {

@Test
fun testExample() {
assertTrue(Greeting().greet().contains("iOS"), "Check iOS is mentioned")
assertEquals(4, 2 + 2, "Check for correct addition")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ class AndroidGreetingTest {

@Test
fun testExample() {
assertTrue("Check Android is mentioned", Greeting().greet().contains("Android"))
assertTrue("Check platform is android", getPlatform().name.contains("Android"))
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
package com.infomaniak.multiplatform_swisstransfer

import kotlin.test.Test
import kotlin.test.assertTrue
import kotlin.test.assertEquals

class CommonGreetingTest {

@Test
fun testExample() {
assertTrue(Greeting().greet().contains("Hello"), "Check 'Hello' is mentioned")
assertEquals(4, 2 + 2, "Check for correct addition")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
package com.infomaniak.multiplatform_swisstransfer

import kotlin.test.Test
import kotlin.test.assertTrue
import kotlin.test.assertEquals

class IosGreetingTest {

@Test
fun testExample() {
assertTrue(Greeting().greet().contains("iOS"), "Check iOS is mentioned")
assertEquals(4, 2 + 2, "Check for correct addition")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ class AndroidGreetingTest {

@Test
fun testExample() {
assertTrue("Check Android is mentioned", Greeting().greet().contains("Android"))
assertTrue("Check platform is android", getPlatform().name.contains("Android"))
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
package com.infomaniak.multiplatform_swisstransfer.db

import kotlin.test.Test
import kotlin.test.assertTrue
import kotlin.test.assertEquals

class CommonGreetingTest {

@Test
fun testExample() {
assertTrue(Greeting().greet().contains("Hello"), "Check 'Hello' is mentioned")
assertEquals(4, 2 + 2, "Check for correct addition")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
package com.infomaniak.multiplatform_swisstransfer.db

import kotlin.test.Test
import kotlin.test.assertTrue
import kotlin.test.assertEquals

class IosGreetingTest {

@Test
fun testExample() {
assertTrue(Greeting().greet().contains("iOS"), "Check iOS is mentioned")
assertEquals(4, 2 + 2, "Check for correct addition")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ class AndroidGreetingTest {

@Test
fun testExample() {
assertTrue("Check Android is mentioned", Greeting().greet().contains("Android"))
assertTrue("Check platform is android", getPlatform().name.contains("Android"))
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
package com.infomaniak.multiplatform_swisstransfer.network

import kotlin.test.Test
import kotlin.test.assertTrue
import kotlin.test.assertEquals

class CommonGreetingTest {

@Test
fun testExample() {
assertTrue(Greeting().greet().contains("Hello"), "Check 'Hello' is mentioned")
assertEquals(4, 2 + 2, "Check for correct addition")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
package com.infomaniak.multiplatform_swisstransfer.network

import kotlin.test.Test
import kotlin.test.assertTrue
import kotlin.test.assertEquals

class IosGreetingTest {

@Test
fun testExample() {
assertTrue(Greeting().greet().contains("iOS"), "Check iOS is mentioned")
assertEquals(4, 2 + 2, "Check for correct addition")
}
}

0 comments on commit f2d7f05

Please sign in to comment.