mirror of
https://github.com/element-hq/synapse
synced 2024-09-12 07:05:12 +00:00
12 lines
283 B
Python
12 lines
283 B
Python
|
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):
|
||
|
result = sum_as_string(1, 2)
|
||
|
self.assertEqual("3", result)
|