-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestDecoder.cs
More file actions
31 lines (28 loc) · 1.15 KB
/
Copy pathTestDecoder.cs
File metadata and controls
31 lines (28 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using PathPilot.Core.Parsers;
class Program
{
static void Main()
{
string testCode = "eNpljkEKgzAQRfc9RTYuFTJq0gpdiuewl4gMTlBIYiQxUErvXqtQXM3j_Xn8mQ26A2MdeCwQEowxBh6VRGXQWBv0ykH8o9YYazyMjzU-xkdkCNYYf_MNRRkn0i4ZnXMKbU5L0R7c0r9VpXOuaKsq15ZlOhLZs8_JvUBZMqVKobKsqEpl2VBlKtN9X6YypUqRKlWmTJUqU6ZMlSpTpkqVKVOlypQpU6XKlKlSpf4BUmBKsA";
Console.WriteLine($"Input length: {testCode.Length}");
Console.WriteLine($"First 20 chars: {testCode.Substring(0, 20)}");
try
{
string xml = PobDecoder.DecodeToXml(testCode);
Console.WriteLine("✓ SUCCESS!");
Console.WriteLine($"XML length: {xml.Length}");
Console.WriteLine($"First 100 chars: {xml.Substring(0, Math.Min(100, xml.Length))}");
}
catch (Exception ex)
{
Console.WriteLine("✗ ERROR!");
Console.WriteLine($"Type: {ex.GetType().Name}");
Console.WriteLine($"Message: {ex.Message}");
if (ex.InnerException != null)
{
Console.WriteLine($"Inner: {ex.InnerException.Message}");
}
}
}
}