2022-09-06 12:01:37 -06: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."""
|
|
|
|
|
2023-02-08 12:52:37 -07:00
|
|
|
def test_basic(self) -> None:
|
2022-09-06 12:01:37 -06:00
|
|
|
result = sum_as_string(1, 2)
|
|
|
|
self.assertEqual("3", result)
|