Skip to content

Commit

Permalink
updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
kosloot committed Nov 14, 2024
1 parent 20ccdb7 commit 52c537c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/foliatest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include <vector>
#include <map>
#include <algorithm>
#include <filesystem>
#include <stdexcept>
#include <unicode/unistr.h>
#include "libxml/tree.h"
Expand Down Expand Up @@ -218,11 +219,17 @@ void test1f() {
void test1g() {
startTestSerie( " Test testing document debugging " );
Document d("debug='PARSING|SERIALIZE'");
ofstream os( "/tmp/foliatest.dbg" );
TiCC::LogStream ds( os );
ds.setlevel( LogHeavy );
d.set_dbg_stream( &ds );
assertNoThrow( d.read_from_file("tests/example.xml") );
assertNoThrow( d.save( "/tmp/example.xml" ) );
int stat = system( "./tests/foliadiff.sh /tmp/example.xml tests/example.xml" );
assertMessage( "/tmp/example.xml tests/example.xml differ!",
(stat == 0) );
size_t size = std::filesystem::file_size("/tmp/foliatest.dbg");
assertTrue( size > 5000 );
}

void test2() {
Expand Down

0 comments on commit 52c537c

Please sign in to comment.