Improve roundtrip verification tests and debug dump.

Add another round-trip verification.  For both original and generated
state, generate a diff from an initial, empty state.  Verify that
these two diffs are the same.
This commit is contained in:
John Hood
2015-10-19 18:37:39 -04:00
parent 66634eb97c
commit e0f6eb78ef
6 changed files with 73 additions and 24 deletions
+1
View File
@@ -76,6 +76,7 @@ namespace Terminal {
/* interface for Network::Transport */
void subtract( const Complete * ) const {}
std::string diff_from( const Complete &existing ) const;
std::string init_diff( void ) const;
void apply_string( std::string diff );
bool operator==( const Complete &x ) const;