Return FfiResult errors as FfiError enum short values

This commit is contained in:
Steve Myers
2021-07-03 20:40:08 -07:00
parent 8443265142
commit adadcbc982
14 changed files with 281 additions and 144 deletions

View File

@@ -31,10 +31,10 @@ abstract class LibTest : LibBase() {
@Test
fun walletResultError() {
val jnaException = assertThrows(JnaException::class.java) {
val jnaException = assertThrows(FfiException::class.java) {
Wallet("bad", "bad", blockchainConfig, databaseConfig)
}
assertEquals(jnaException.err, JnaError.Descriptor)
assertEquals(jnaException.err, FfiError.Descriptor)
}
// @Test