test_rust.py 291 B

1234567891011
  1. from synapse.synapse_rust import sum_as_string
  2. from tests import unittest
  3. class RustTestCase(unittest.TestCase):
  4. """Basic tests to ensure that we can call into Rust code."""
  5. def test_basic(self) -> None:
  6. result = sum_as_string(1, 2)
  7. self.assertEqual("3", result)