Skip to content

Commit

Permalink
README fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
morisil committed Dec 10, 2024
1 parent b6449a6 commit 2e08380
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,29 @@ have(type == "image/png")

## Usage

### Setting up Gradle for Kotlin JVM project
### Setting up Gradle

#### Setting up Gradle for Kotlin Multiplatform project

In your `build.gradle.kts`:

```kotlin
plugins {
kotlin("jvm") version "2.1.0"
kotlin("multiplatform") version "2.1.0"
kotlin("plugin.power-assert") version "2.1.0" // replace with the latest kotlin version
}

dependencies {
testImplementation("com.xemantic.kotlin:xemantic-kotlin-test:0.1.1")
kotlin {

sourceSets {

commonTest {
depencencies {
implementation("com.xemantic.kotlin:xemantic-kotlin-test:0.1.1")
}
}

}
}

powerAssert {
Expand All @@ -88,27 +99,18 @@ powerAssert {
}
```

### Setting up Gradle for Kotlin Multiplatform project
#### Setting up Gradle for Kotlin JVM project

In your `build.gradle.kts`:

```kotlin
plugins {
kotlin("multiplatform") version "2.1.0"
kotlin("jvm") version "2.1.0"
kotlin("plugin.power-assert") version "2.1.0" // replace with the latest kotlin version
}

kotlin {

sourceSets {

commonTest {
depencencies {
implementation("com.xemantic.kotlin:xemantic-kotlin-test:0.1.1")
}
}

}
dependencies {
testImplementation("com.xemantic.kotlin:xemantic-kotlin-test:0.1.1")
}

powerAssert {
Expand Down Expand Up @@ -138,7 +140,7 @@ someObject should {
}
```

> ![TIP]
> [!TIP]
> After calling `be` function with expected type, all the subsequent calls within
> `should {}` will have access to the properties of the expected type,
> like if `this`, representing `someObject`, was cast to the expected type.
Expand Down

0 comments on commit 2e08380

Please sign in to comment.