0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-15 22:42:23 +01:00
synapse/tests/test_rust.py

12 lines
291 B
Python
Raw Normal View History

2022-09-06 20:01:37 +02:00
from synapse.synapse_rust import sum_as_string
from tests import unittest
class RustTestCase(unittest.TestCase):
"""Basic tests to ensure that we can call into Rust code."""
def test_basic(self) -> None:
2022-09-06 20:01:37 +02:00
result = sum_as_string(1, 2)
self.assertEqual("3", result)