diff options
Diffstat (limited to 'other/Kermit/test/test_patch2.cpp')
| -rw-r--r-- | other/Kermit/test/test_patch2.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/other/Kermit/test/test_patch2.cpp b/other/Kermit/test/test_patch2.cpp new file mode 100644 index 0000000..603ea96 --- /dev/null +++ b/other/Kermit/test/test_patch2.cpp | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | #include <Kermit> | ||
| 2 | #include <iostream> | ||
| 3 | #include <fstream> | ||
| 4 | #include <string> | ||
| 5 | #define LINE "12345678,Clean: (73 50 73 50 73 50 73 50), (0 0 0 0 0 0 0 0)" | ||
| 6 | |||
| 7 | int main () | ||
| 8 | { | ||
| 9 | const string dump_f = string ("DUMP_FILE"); | ||
| 10 | /* | ||
| 11 | unsigned short x = 8; | ||
| 12 | unsigned int y = 0x12345678; | ||
| 13 | unsigned char z[] = "\x73\x50\x73\x50\x73\x50\x73\x50"; | ||
| 14 | |||
| 15 | Patch *foo = new Patch (z, x, y); | ||
| 16 | */ | ||
| 17 | Patch *foo = new Patch (string (LINE)); | ||
| 18 | |||
| 19 | foo->dump (dump_f); | ||
| 20 | return 0; | ||
| 21 | } | ||
