mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:46:06 -04:00
Add a stub Rust crate (#12595)
This commit is contained in:
parent
3d20115115
commit
c9b7e97355
23 changed files with 302 additions and 11 deletions
11
tests/test_rust.py
Normal file
11
tests/test_rust.py
Normal file
|
@ -0,0 +1,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):
|
||||
result = sum_as_string(1, 2)
|
||||
self.assertEqual("3", result)
|
Loading…
Add table
Add a link
Reference in a new issue