664
674
# Make sure that we can detect if a weave file has
665
675
# been corrupted. This doesn't test all forms of corruption,
666
676
# but it at least helps verify the data you get, is what you want.
670
679
w.add_lines('v1', [], ['hello\n'])
671
680
w.add_lines('v2', ['v1'], ['hello\n', 'there\n'])
676
685
# Because we are corrupting, we need to make sure we have the exact text
678
687
'i\n1 f572d396fae9206628714fb2ce00f72e94f2258f\nn v1\n\n'
679
688
'i 0\n1 90f265c6e75f1c8f9ab76dcf85528352c5f215ef\nn v2\n\n'
680
689
'w\n{ 0\n. hello\n}\n{ 1\n. there\n}\nW\n',