From 09413f06949b421a1c5b0cc05d70d84b184d3397 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Wed, 5 Jun 2024 04:06:00 +0800 Subject: feat(rust): wrap_pyfunction "process_rule_pack" in libcore module --- tests/test_corelib.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'tests/test_corelib.py') 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 -- cgit v1.2.3-70-g09d2