Skip to content
This repository was archived by the owner on Aug 16, 2024. It is now read-only.

Commit c0f83cd

Browse files
authored
Merge pull request #99 from cyanray/dev/cyanray
修复: 单元测试编译错误.
2 parents 0c4cb39 + 3639c9e commit c0f83cd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

UnitTest/main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,20 +134,20 @@ TEST(MessageChain_Test, ImageMessage) {
134134
using namespace Cyan;
135135
MessageChain mc;
136136
MiraiImage img;
137-
img.ID = "{qweasd}.png";
137+
img.Id = "{qweasd}.png";
138138
mc.Plain("Image:").Image(img);
139139
auto img_msg = mc.GetFirst<ImageMessage>();
140-
ASSERT_TRUE(img_msg.ToMiraiImage().ID == "{qweasd}.png");
140+
ASSERT_TRUE(img_msg.ToMiraiImage().Id == "{qweasd}.png");
141141
}
142142

143143
TEST(MessageChain_Test, FlashImageMessage) {
144144
using namespace Cyan;
145145
MessageChain mc;
146146
MiraiImage img;
147-
img.ID = "{qweasd}.png";
147+
img.Id = "{qweasd}.png";
148148
mc.Plain("Image:").FlashImage(img);
149149
auto img_msg = mc.GetFirst<FlashImageMessage>();
150-
ASSERT_TRUE(img_msg.ToMiraiImage().ID == "{qweasd}.png");
150+
ASSERT_TRUE(img_msg.ToMiraiImage().Id == "{qweasd}.png");
151151
}
152152

153153
TEST(MessageChain_Test, AtMessage) {

0 commit comments

Comments
 (0)