This commit is contained in:
Erik C. Thauvin 2021-05-10 15:36:11 -07:00
parent 4caeababe8
commit 9d483eccf4
3 changed files with 3 additions and 3 deletions

View file

@ -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"}}

View file

@ -27,6 +27,6 @@ tasks {
register<JavaExec>("runJava") {
group = "application"
main = "com.example.CryptoPriceSample"
classpath = sourceSets["main"].runtimeClasspath
classpath = sourceSets.main.get().runtimeClasspath
}
}

View file

@ -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() }
)
}
}