Fix tests

This commit is contained in:
Him188 2020-05-02 17:18:31 +08:00
parent 68045ea7af
commit b14bfde694
2 changed files with 1 additions and 6 deletions

View File

@ -19,7 +19,7 @@ internal class ContentEqualsTest {
@Test
fun testContentEquals() {
val mySource = TestConstrainSingleMessage()
val image = Image("{01E9451B-70ED-EAE3-B37C-101F1EEBF5B5}.png")
val image = Image("{01E9451B-70ED-EAE3-B37C-101F1EEBF5B5}.mirai")
assertTrue {
buildMessageChain {

View File

@ -39,11 +39,6 @@ internal class ImageTest {
calculateImageMd5ByImageId("{01E9451B-70ED-EAE3-B37C-101F1EEBF5B5}.mirai").contentToString()
)
assertEquals(
"01E9451B-70ED-EAE3-B37C-101F1EEBF5B5".filterNot { it == '-' }.autoHexToBytes().contentToString(),
calculateImageMd5ByImageId("{01E9451B-70ED-EAE3-B37C-101F1EEBF5B5}.gif").contentToString()
)
assertEquals(
"f8f1ab55-bf8e-4236-b55e-955848d7069f".filterNot { it == '-' }.autoHexToBytes().contentToString(),
calculateImageMd5ByImageId("/f8f1ab55-bf8e-4236-b55e-955848d7069f").contentToString()