Skip to content

Commit

Permalink
reorganised sanity tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kosloot committed Nov 26, 2024
1 parent fb50e47 commit 9b2d695
Show file tree
Hide file tree
Showing 4 changed files with 311 additions and 256 deletions.
1 change: 1 addition & 0 deletions include/libfolia/folia_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ namespace folia {
virtual const std::string subset() const NOT_IMPLEMENTED;
virtual const bool& setonly() const = 0;
virtual const bool& auto_generate_id() const = 0;

virtual Document *doc() const = 0;
virtual Sentence *sentence() const NOT_IMPLEMENTED;
virtual Paragraph *paragraph() const NOT_IMPLEMENTED;
Expand Down
6 changes: 6 additions & 0 deletions include/libfolia/folia_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,15 @@ namespace folia {
std::string parseDate( const std::string& );
std::string parseTime( const std::string& );

/// functcions to test internal sanity
bool AT_sanity_check();
bool Attrib_sanity_check();
bool ET_sanity_check();
bool annotator_sanity_check();
bool annotation_sanity_check();
bool document_sanity_check();
bool space_sanity_check();
bool subclass_sanity_check();

///
/// some xml goodies
Expand Down
Loading

0 comments on commit 9b2d695

Please sign in to comment.