diff --git a/README.md b/README.md index 6803260..5517b6e 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ A generic `apiCall()` function is available to access other [API data endpoints] ```kotlin apiCall(paths = listOf("prices", "BTC-USD", "buy"), params = emptyMap()) ``` -will return: +will return something like: ```json {"data":{"base":"BTC","currency":"USD","amount":"58977.17"}} diff --git a/examples/build.gradle.kts b/examples/build.gradle.kts index 79aad80..1b19674 100644 --- a/examples/build.gradle.kts +++ b/examples/build.gradle.kts @@ -27,6 +27,6 @@ tasks { register("runJava") { group = "application" main = "com.example.CryptoPriceSample" - classpath = sourceSets["main"].runtimeClasspath + classpath = sourceSets.main.get().runtimeClasspath } } diff --git a/src/test/kotlin/net/thauvin/erik/crypto/CryptoPriceTest.kt b/src/test/kotlin/net/thauvin/erik/crypto/CryptoPriceTest.kt index 67752eb..172d74b 100644 --- a/src/test/kotlin/net/thauvin/erik/crypto/CryptoPriceTest.kt +++ b/src/test/kotlin/net/thauvin/erik/crypto/CryptoPriceTest.kt @@ -105,7 +105,7 @@ class CryptoPriceTest { assertFailsWith( message = "no base did not fail", exceptionClass = CryptoException::class, - block = { json.replace("base","food").toPrice() } + block = { json.replace("base","foo").toPrice() } ) } }