add goal test
All checks were successful
studiorailgun/trpg/pipeline/head This commit looks good

This commit is contained in:
austin 2024-12-29 12:09:38 -05:00
parent 117dd6a1af
commit a9f72dbb19
2 changed files with 10 additions and 1 deletions

View File

@ -4,7 +4,6 @@ import java.util.Scanner;
import org.studiorailgun.AI;
import org.studiorailgun.Globals;
import org.studiorailgun.conversation.evaluators.EvaluationTree;
import org.studiorailgun.conversation.parser.CommandParser;
public class AgentLoop {

View File

@ -3,6 +3,7 @@ package org.studiorailgun;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
import org.studiorailgun.conversation.evaluators.goal.GoalData.ConversationGoal;
/**
* Tests greeting
@ -18,4 +19,13 @@ public class GreetingTests {
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);
}
}