feat: 2025-11-25 review fixes (#201)
* fix: review fixes of the latest changes * fix: updated unit tests * chore: more conformance compliance improvements * chore: reverted protocol changes * chore: more compliance improvements * chore: more conformance compliance improvements * chore: improvements to the backcompat and updated to Tool unit tests * chore: ci update
This commit is contained in:
parent
6112a3995a
commit
973b46b8f7
1 changed files with 692 additions and 507 deletions
|
|
@ -13,7 +13,7 @@ struct ResourceTests {
|
|||
title: "Test Resource Title",
|
||||
description: "A test resource",
|
||||
mimeType: "text/plain",
|
||||
metadata: ["key": "value"]
|
||||
size: 1024
|
||||
)
|
||||
|
||||
#expect(resource.name == "test_resource")
|
||||
|
|
@ -21,7 +21,7 @@ struct ResourceTests {
|
|||
#expect(resource.title == "Test Resource Title")
|
||||
#expect(resource.description == "A test resource")
|
||||
#expect(resource.mimeType == "text/plain")
|
||||
#expect(resource.metadata?["key"] == "value")
|
||||
#expect(resource.size == 1024)
|
||||
}
|
||||
|
||||
@Test("Resource encoding and decoding")
|
||||
|
|
@ -32,7 +32,7 @@ struct ResourceTests {
|
|||
title: "Test Resource Title",
|
||||
description: "Test resource description",
|
||||
mimeType: "text/plain",
|
||||
metadata: ["key1": "value1", "key2": "value2"]
|
||||
size: 512
|
||||
)
|
||||
|
||||
let encoder = JSONEncoder()
|
||||
|
|
@ -46,7 +46,7 @@ struct ResourceTests {
|
|||
#expect(decoded.title == resource.title)
|
||||
#expect(decoded.description == resource.description)
|
||||
#expect(decoded.mimeType == resource.mimeType)
|
||||
#expect(decoded.metadata == resource.metadata)
|
||||
#expect(decoded.size == resource.size)
|
||||
}
|
||||
|
||||
@Test("Resource.Content text initialization and encoding")
|
||||
|
|
|
|||
Loading…
Reference in a new issue