summary refs log tree commit diff
path: root/tests/test_rust.py
blob: 67443b628042ec1d04442df83ae8512b763ba909 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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:
        result = sum_as_string(1, 2)
        self.assertEqual("3", result)