Swap (expect) and (expect*)

This commit is contained in:
HAYAMA_Kaoru
2024-11-30 10:37:43 +09:00
parent 4ffb196563
commit 7cee075958
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
(let ((ctrlc (format nil "~A" (convert 3 <character>))))
(block main
(while t
(expect
(expect*
("xxx"
(send ctrlc)
(sendln "exit")
+2 -2
View File
@@ -49,7 +49,7 @@ func (g *Global) spawn(ctx context.Context, w *gmnlisp.World, args []gmnlisp.Nod
var symTimeout = gmnlisp.NewSymbol("timeout")
func (g *Global) expectX(ctx context.Context, w *gmnlisp.World, node gmnlisp.Node) (gmnlisp.Node, error) {
func (g *Global) expect(ctx context.Context, w *gmnlisp.World, node gmnlisp.Node) (gmnlisp.Node, error) {
patterns := []string{}
timeOut := 0
@@ -84,7 +84,7 @@ func (g *Global) expectX(ctx context.Context, w *gmnlisp.World, node gmnlisp.Nod
return gmnlisp.Integer(result), nil
}
func (g *Global) expect(ctx context.Context, w *gmnlisp.World, node gmnlisp.Node) (gmnlisp.Node, error) {
func (g *Global) expectX(ctx context.Context, w *gmnlisp.World, node gmnlisp.Node) (gmnlisp.Node, error) {
patterns := []string{}
actions := []gmnlisp.Node{}