Skip to content

Commit

Permalink
test: add test case that uses performative in message definition
Browse files Browse the repository at this point in the history
  • Loading branch information
mchitre committed Feb 1, 2024
1 parent eee6eef commit fe5470a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,15 @@ try

abstract type MyAbstractReq <: Message end
@message "org.arl.fjage.test.MyAbstractReq" struct MyAbstractReq <: MyAbstractReq end
@message "org.arl.fjage.test.MyReq" struct MyReq <: MyAbstractReq end
@message "org.arl.fjage.test.MyReq" Performative.AGREE struct MyReq <: MyAbstractReq end

@testset "@message" begin
@test MyAbstractReq <: Message
@test MyReq <: Message
@test MyReq <: MyAbstractReq
@test isa(MyAbstractReq(), MyAbstractReq)
@test isa(MyReq(), MyAbstractReq)
@test MyReq().performative == Performative.AGREE
end

@testset "send & receive (gw, blocking)" begin
Expand Down

0 comments on commit fe5470a

Please sign in to comment.