1
0

add test and disable debugging symbols.

This commit is contained in:
Nathan TeBlunthuis 2025-07-05 11:37:58 -07:00
parent 5d9517d7df
commit 63b7ae4ccb
2 changed files with 5 additions and 2 deletions

View File

@ -18,8 +18,8 @@ my_extension = setuptools.Extension(
"pywikidiff2",
sources=cpp_sources,
include_dirs=[],
extra_compile_args=["-Wall", "-std=c++17", "-fPIC","-lthai","-lstdc++","-O0"],
extra_link_args=["-lthai", "-lstdc++","-fPIC","-g","-O0"],
extra_compile_args=["-Wall", "-std=c++17", "-fPIC","-lthai","-lstdc++"],
extra_link_args=["-lthai", "-lstdc++","-fPIC"],
language="c++",
)

View File

@ -19,9 +19,12 @@ res = obj.inline_json_diff(open("test/err_last_text",'r').read(),
open("test/err_text",'r').read(),
numContextLines=10000)
assert obj.num_context_lines() == 10000
res = obj.inline_json_diff("",
open("test/1295229484",'r').read(),
numContextLines=1000)
assert obj.num_context_lines() == 1000
res = obj.inline_json_diff(open("test/1285792388",'r').read(),
open("test/1295229484",'r').read(),