1
0

switch to GPL (for complience with wikidiff2) add the code.

This commit is contained in:
Nathan TeBlunthuis
2025-07-04 20:53:39 -07:00
parent 43ce33153e
commit 9d63263384
6 changed files with 583 additions and 0 deletions

15
test/test_pywikidiff2.py Normal file
View File

@@ -0,0 +1,15 @@
import pywikidiff2
obj = pywikidiff2.pywikidiff2()
obj = pywikidiff2.pywikidiff2(numContextLines=100000)
print(obj.num_context_lines())
print(obj.moved_line_threshold())
print(obj.change_threshold())
print(obj.moved_paragraph_detection_cutoff())
print(obj.max_split_size())
print(obj.initial_split_threshold())
print(obj.final_split_threshold())
res = obj.inline_json_diff("help! I'm alive", "help! dead I am")
print('\n')
print(res)