From 9d483eccf40dec3a10ca68352981c2f44375176d Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Mon, 10 May 2021 15:36:11 -0700 Subject: [PATCH] Cleanup. --- README.md | 2 +- examples/build.gradle.kts | 2 +- src/test/kotlin/net/thauvin/erik/crypto/CryptoPriceTest.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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() } ) } }