source: trunk/CORE/arb_diff.h

Last change on this file was 16861, checked in by westram, 7 years ago
  • reintegrates 'unittest' into 'trunk'
    • fixed non-deterministic behavior of add-species:
      • 2 sequences in test-DB were identical (changed 1 bp)
      • AP_tree_edge cannot be used to store insert-positions (uses pair of AP_tree_nlen instead)
      • corrected some undefined behavior (results did depend on compiler version+flags):
        • general order of inserts was undefined
        • order of initial-insert was undefined (used by complete tree reconstruction)
    • bugs fixed:
      • not all possible insert-positions were tested
      • sometimes species were added at wrong positions
      • if multiple species were inserted at the same position, the following optimization
        • did modify topology
        • now optimizes all multi-inserts globally
        • at leaf-positions: includes the leaf (Note: this does not modify the original topology)
      • insert order now is "longest sequence first" (was "shortest sequence first")
    • fixed unwanted behavior when testing for content of generated files
  • adds: log:branches/unittest@16807:16860
File size: 820 bytes
Line 
1/* This file is generated by aisc_mkpt.
2 * Any changes you make here will be overwritten later!
3 */
4
5#ifndef ARB_DIFF_H
6#define ARB_DIFF_H
7
8/* define ARB attributes: */
9#ifndef ATTRIBUTES_H
10# include <attributes.h>
11#endif
12
13
14/* arb_diff.cxx */
15
16#ifndef _GLIBCXX_CSTDLIB
17#include <cstdlib>
18#endif
19enum TextDiffMode { TDM_DIFF_LINECOUNT=0, TDM_IGNORE_TIMESTAMPS=1, TDM_NOT_DIFF_LINECOUNT=2 };
20
21bool ARB_textfiles_have_difflines(const char *file1, const char *file2, int expected_difflines, TextDiffMode tdmode);
22size_t ARB_test_mem_equal(const unsigned char *buf1, const unsigned char *buf2, size_t common, size_t blockStartAddress);
23bool ARB_files_are_equal(const char *file1, const char *file2);
24bool ARB_files_differ(const char *file1, const char *file2);
25
26#else
27#error arb_diff.h included twice
28#endif /* ARB_DIFF_H */
Note: See TracBrowser for help on using the repository browser.