Skip to content

Commit e67492c

Browse files
committed
現物合わせでTestを修正
UserDictWordクラスよりも多くのmemberが返ってくるようになっているので、それに対応 classに対応するものだけを取得するでも良いかもしれない
1 parent 6e9af14 commit e67492c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/VoicevoxCoreSharp.Core.Tests/UserDictTest.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ public void CreateDelete()
5353

5454
var result = userDict.ToJson(out var json);
5555
Assert.Equal(ResultCode.RESULT_OK, result);
56-
Assert.Equal($"{{\"{wordUuid}\":{{\"surface\":\"hoge\",\"pronunciation\":\"{pronunciation}\",\"accent_type\":{accentType},\"word_type\":\"ADJECTIVE\",\"priority\":{priority},\"mora_count\":2}}}}", json);
56+
System.Console.Error.WriteLine(json);
57+
var expectedJson = $"{{\"{wordUuid}\":{{\"surface\":\"hoge\",\"priority\":{priority},\"context_id\":20,\"part_of_speech\":\"形容詞\",\"part_of_speech_detail_1\":\"自立\",\"part_of_speech_detail_2\":\"*\",\"part_of_speech_detail_3\":\"*\",\"inflectional_type\":\"*\",\"inflectional_form\":\"*\",\"stem\":\"*\",\"yomi\":\"ホゲ\",\"pronunciation\":\"{pronunciation}\",\"accent_type\":{accentType},\"mora_count\":2,\"accent_associative_rule\":\"*\"}}}}";
58+
Assert.Equal(expectedJson, json);
5759

5860
var removeResult = userDict.RemoveWord(wordUuid);
5961
Assert.Equal(ResultCode.RESULT_OK, removeResult);

0 commit comments

Comments
 (0)