Skip to content

Commit

Permalink
[NEW] added tests for _type lwt, cannot confirm #3
Browse files Browse the repository at this point in the history
  • Loading branch information
ckrey committed Dec 15, 2023
1 parent fe82658 commit 2aeb7d3
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 deletions.
6 changes: 4 additions & 2 deletions schemas/message.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@
"_type": { "$ref": "#/$defs/_type" },
"action": { "$ref": "#/$defs/action" },
"content": { "$ref": "#/$defs/content" },
"face": { "$ref": "#/$defs/face" },
"lat": { "$ref": "#/$defs/lat" },
"lon": { "$ref": "#/$defs/lon" },
"tst": { "$ref": "#/$defs/tst" },
"name": { "$ref": "#/$defs/name" },
"notification": { "$ref": "#/$defs/notification" },
"ntours": { "$ref": "#/$defs/ntours" },
"request": { "$ref": "#/$defs/request" },
Expand Down Expand Up @@ -81,6 +79,10 @@
},
"required": [ "_type" ]
}, "then": {
"properties": {
"face": { "$ref": "#/$defs/face" },
"name": { "$ref": "#/$defs/name" }
},
"required": [ "face", "name" ]
}
},
Expand Down
5 changes: 4 additions & 1 deletion test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ messagetest: card-without-face.mfail \
steps-nohave.msuccess \
transition.msuccess \
w.msuccess \
waypoint-circular.msuccess
waypoint-circular.msuccess \
lwt.msuccess \
lwt-notst.mfail \
lwt-extra.msuccess

%.esuccess: %.json
@$(CHECK) $(CHECKFLAGS) --schemafile ../schemas/encryption.json --base-uri $(PWD)/../schemas/encryption.json $?
Expand Down
5 changes: 5 additions & 0 deletions test/lwt-extra.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"_type" : "lwt",
"tst" : 1699882482,
"tid": "LW"
}
3 changes: 3 additions & 0 deletions test/lwt-notst.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"_type" : "lwt"
}
4 changes: 4 additions & 0 deletions test/lwt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"_type" : "lwt",
"tst" : 1699882482
}

0 comments on commit 2aeb7d3

Please sign in to comment.