add test and disable debugging symbols.
This commit is contained in:
parent
5d9517d7df
commit
63b7ae4ccb
4
setup.py
4
setup.py
@ -18,8 +18,8 @@ my_extension = setuptools.Extension(
|
|||||||
"pywikidiff2",
|
"pywikidiff2",
|
||||||
sources=cpp_sources,
|
sources=cpp_sources,
|
||||||
include_dirs=[],
|
include_dirs=[],
|
||||||
extra_compile_args=["-Wall", "-std=c++17", "-fPIC","-lthai","-lstdc++","-O0"],
|
extra_compile_args=["-Wall", "-std=c++17", "-fPIC","-lthai","-lstdc++"],
|
||||||
extra_link_args=["-lthai", "-lstdc++","-fPIC","-g","-O0"],
|
extra_link_args=["-lthai", "-lstdc++","-fPIC"],
|
||||||
language="c++",
|
language="c++",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -19,9 +19,12 @@ res = obj.inline_json_diff(open("test/err_last_text",'r').read(),
|
|||||||
open("test/err_text",'r').read(),
|
open("test/err_text",'r').read(),
|
||||||
numContextLines=10000)
|
numContextLines=10000)
|
||||||
|
|
||||||
|
assert obj.num_context_lines() == 10000
|
||||||
|
|
||||||
res = obj.inline_json_diff("",
|
res = obj.inline_json_diff("",
|
||||||
open("test/1295229484",'r').read(),
|
open("test/1295229484",'r').read(),
|
||||||
numContextLines=1000)
|
numContextLines=1000)
|
||||||
|
assert obj.num_context_lines() == 1000
|
||||||
|
|
||||||
res = obj.inline_json_diff(open("test/1285792388",'r').read(),
|
res = obj.inline_json_diff(open("test/1285792388",'r').read(),
|
||||||
open("test/1295229484",'r').read(),
|
open("test/1295229484",'r').read(),
|
||||||
|
Loading…
Reference in New Issue
Block a user