Skip to content

Commit

Permalink
remove occasional cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Juniverse committed Jun 24, 2024
1 parent fd297fd commit 68e8d26
Showing 1 changed file with 0 additions and 47 deletions.
47 changes: 0 additions & 47 deletions Tests/Runtime/InworldRuntimeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,53 +215,6 @@ public IEnumerator InworldRuntimeTest_InterleaveTextAudio()
Assert.IsTrue(m_Conversation.Any(p => p.type == PacketType.TEXT));
Assert.IsTrue(m_Conversation.Any(p => p.type == PacketType.AUDIO));
}

[UnityTest]
public IEnumerator InworldRuntimeTest_KnowledgePlayerName()
{
m_Conversation.Clear();
InworldController.Client.SendText(InworldController.Client.LiveSessionData.Values.First().agentId, "What's my name?");
yield return ConversationCheck(10);
Assert.IsTrue(m_Conversation.Any(p => p is TextPacket textPacket && textPacket.TargetName == k_PlayerName));
}

[UnityTest]
public IEnumerator InworldRuntimeTest_KnowledgeLocation()
{
m_Conversation.Clear();
InworldController.Client.SendText(InworldController.Client.LiveSessionData.Values.First().agentId, "What is this place called?");
yield return ConversationCheck(10);
bool locationFound = false;
for (var i = 0; i < m_Conversation.Count; i++){
if (m_Conversation[i] is TextPacket textPacket)
{
string currentText = textPacket.text.text;
if (currentText.Contains(k_LocationName, StringComparison.OrdinalIgnoreCase)){
locationFound = true;
}
}
}
Assert.IsTrue(locationFound);
}

[UnityTest]
public IEnumerator InworldRuntimeTest_KnowledgeCharacterName()
{
m_Conversation.Clear();
InworldController.Client.SendText(InworldController.Client.LiveSessionData.Values.First().agentId, "Can you give me your name?");
yield return ConversationCheck(10);
bool nameFound = false;
for (var i = 0; i < m_Conversation.Count; i++){
if (m_Conversation[i] is TextPacket textPacket)
{
string currentText = textPacket.text.text;
if (currentText.Contains(k_CharacterName)){
nameFound = true;
}
}
}
Assert.IsTrue(nameFound);
}

[UnityTest]
public IEnumerator InworldRuntimeTest_GoalsRepeatable()
Expand Down

0 comments on commit 68e8d26

Please sign in to comment.