Split character from state
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
package agent_test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
. "github.com/mudler/local-agent-framework/agent"
|
||||
. "github.com/onsi/ginkgo/v2"
|
||||
. "github.com/onsi/gomega"
|
||||
@@ -21,13 +19,8 @@ var _ = Describe("Agent test", func() {
|
||||
Expect(agent.Character.Name).ToNot(BeEmpty())
|
||||
Expect(agent.Character.Age).ToNot(BeZero())
|
||||
Expect(agent.Character.Occupation).ToNot(BeEmpty())
|
||||
Expect(agent.Character.NowDoing).ToNot(BeEmpty())
|
||||
Expect(agent.Character.DoingNext).ToNot(BeEmpty())
|
||||
Expect(agent.Character.DoneHistory).ToNot(BeEmpty())
|
||||
Expect(agent.Character.Memories).ToNot(BeEmpty())
|
||||
Expect(agent.Character.Hobbies).ToNot(BeEmpty())
|
||||
Expect(agent.Character.MusicTaste).ToNot(BeEmpty())
|
||||
fmt.Println(agent.String())
|
||||
})
|
||||
It("detect an invalid character", func() {
|
||||
_, err := New(WithRandomIdentity())
|
||||
@@ -43,13 +36,8 @@ var _ = Describe("Agent test", func() {
|
||||
Expect(agent.Character.Name).ToNot(BeEmpty())
|
||||
Expect(agent.Character.Age).ToNot(BeZero())
|
||||
Expect(agent.Character.Occupation).ToNot(BeEmpty())
|
||||
Expect(agent.Character.NowDoing).ToNot(BeEmpty())
|
||||
Expect(agent.Character.DoingNext).ToNot(BeEmpty())
|
||||
Expect(agent.Character.DoneHistory).ToNot(BeEmpty())
|
||||
Expect(agent.Character.Memories).ToNot(BeEmpty())
|
||||
Expect(agent.Character.Hobbies).ToNot(BeEmpty())
|
||||
Expect(agent.Character.MusicTaste).ToNot(BeEmpty())
|
||||
fmt.Println(agent.String())
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user