diff options
| author | Root THC | 2026-02-24 12:42:47 +0000 |
|---|---|---|
| committer | Root THC | 2026-02-24 12:42:47 +0000 |
| commit | c9cbeced5b3f2bdd7407e29c0811e65954132540 (patch) | |
| tree | aefc355416b561111819de159ccbd86c3004cf88 /other/Kermit/test/test_patch2.cpp | |
| parent | 073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff) | |
initial
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 | } | ||
