This commit is contained in:
parent
117dd6a1af
commit
a9f72dbb19
@ -4,7 +4,6 @@ import java.util.Scanner;
|
|||||||
|
|
||||||
import org.studiorailgun.AI;
|
import org.studiorailgun.AI;
|
||||||
import org.studiorailgun.Globals;
|
import org.studiorailgun.Globals;
|
||||||
import org.studiorailgun.conversation.evaluators.EvaluationTree;
|
|
||||||
import org.studiorailgun.conversation.parser.CommandParser;
|
import org.studiorailgun.conversation.parser.CommandParser;
|
||||||
|
|
||||||
public class AgentLoop {
|
public class AgentLoop {
|
||||||
|
|||||||
@ -3,6 +3,7 @@ package org.studiorailgun;
|
|||||||
import static org.junit.jupiter.api.Assertions.*;
|
import static org.junit.jupiter.api.Assertions.*;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
import org.studiorailgun.conversation.evaluators.goal.GoalData.ConversationGoal;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests greeting
|
* Tests greeting
|
||||||
@ -18,4 +19,13 @@ public class GreetingTests {
|
|||||||
assertEquals(Globals.conversation.getGreetingData().getHaveGreeted().size(), 1);
|
assertEquals(Globals.conversation.getGreetingData().getHaveGreeted().size(), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGoal(){
|
||||||
|
Globals.init("./data/test/webs/web.json");
|
||||||
|
|
||||||
|
AI.simFrame("Hello");
|
||||||
|
|
||||||
|
assertEquals(Globals.conversation.getGoalData().getGoal(), ConversationGoal.GREET);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user