Add simple kotlin,swift, and python integration tests

This commit is contained in:
Steve Myers
2022-10-21 12:28:03 -05:00
parent 3bec5d2cab
commit ee6ee8139a
8 changed files with 63 additions and 1 deletions

8
tests/bindings/test.kts Normal file
View File

@@ -0,0 +1,8 @@
/*
* This is a basic test kotlin program that does nothing but confirm that the kotlin bindings compile
* and that a program that depends on them will run.
*/
import org.bitcoindevkit.*
val network = Network.TESTNET

15
tests/bindings/test.py Normal file
View File

@@ -0,0 +1,15 @@
import unittest
from bdk import *
class TestBdk(unittest.TestCase):
def test_some_enum(self):
network = Network.TESTNET
def test_some_dict(self):
a = AddressInfo(index=42, address="testaddress")
self.assertEqual(42, a.index)
self.assertEqual("testaddress", a.address)
if __name__=='__main__':
unittest.main()

View File

@@ -0,0 +1,9 @@
/*
* This is a basic test swift program that does nothing but confirm that the swift bindings compile
* and that a program that depends on them will run.
*/
import Foundation
import bdk
let network = Network.testnet