aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2024-06-05 04:06:00 +0800
committer简律纯 <i@jyunko.cn>2024-06-05 04:06:00 +0800
commit09413f06949b421a1c5b0cc05d70d84b184d3397 (patch)
tree7b74bdafac7fb420d73137683209ba7d46acdda2 /tests
parent28a7b2ecd90e7e67427682a99b8616e13042b4ab (diff)
downloadHydroRollCore-09413f06949b421a1c5b0cc05d70d84b184d3397.tar.gz
HydroRollCore-09413f06949b421a1c5b0cc05d70d84b184d3397.zip
feat(rust): wrap_pyfunction "process_rule_pack" in libcore module
Diffstat (limited to 'tests')
-rw-r--r--tests/test_corelib.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/test_corelib.py b/tests/test_corelib.py
index aa402cd..a0a3424 100644
--- a/tests/test_corelib.py
+++ b/tests/test_corelib.py
@@ -1,4 +1,11 @@
from hydro_roll_core import libcore
-cb = libcore()
-cb.sum_as_string(1, 2) \ No newline at end of file
+cb = libcore
+
+def main():
+ rule_pack = "example_rule_pack"
+ result = cb.process_rule_pack(rule_pack)
+ print(result)
+
+if __name__ == "__main__":
+ main() \ No newline at end of file