Skip to content

Commit a076b94

Browse files
Copilotstephentoub
andcommitted
Fix base64 comment: 0xFB,0xEF,0xBE encodes to "++++", not "+++"
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
1 parent cb078ad commit a076b94

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/ModelContextProtocol.Tests/Protocol/ContentBlockTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ public static TheoryData<byte[]> Base64TestData()
340340
new byte[] { 0x00, 0x01 }, // 2 bytes, 1 padding char: "AAE="
341341
new byte[] { 0x00, 0x01, 0x02 }, // 3 bytes, no padding: "AAEC"
342342
new byte[] { 0xFF, 0xD8, 0xFF, 0xE0 }, // produces '/' in base64: "/9j/4A=="
343-
new byte[] { 0xFB, 0xEF, 0xBE }, // produces '+' in base64: "+++"
343+
new byte[] { 0xFB, 0xEF, 0xBE }, // produces '+' in base64: "++++"
344344
};
345345

346346
// All 256 byte values to exercise the full base64 alphabet

tests/ModelContextProtocol.Tests/Protocol/ResourceContentsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ public static TheoryData<byte[]> Base64TestData()
524524
new byte[] { 0x00, 0x01 }, // 2 bytes, 1 padding char: "AAE="
525525
new byte[] { 0x00, 0x01, 0x02 }, // 3 bytes, no padding: "AAEC"
526526
new byte[] { 0xFF, 0xD8, 0xFF, 0xE0 }, // produces '/' in base64: "/9j/4A=="
527-
new byte[] { 0xFB, 0xEF, 0xBE }, // produces '+' in base64: "+++"
527+
new byte[] { 0xFB, 0xEF, 0xBE }, // produces '+' in base64: "++++"
528528
};
529529

530530
// All 256 byte values to exercise the full base64 alphabet

0 commit comments

Comments
 (0)