Skip to content

Commit

Permalink
test(workspace): add tabtests for records
Browse files Browse the repository at this point in the history
  • Loading branch information
brusherru committed Oct 2, 2020
1 parent 9535ec6 commit 40047a6
Show file tree
Hide file tree
Showing 15 changed files with 685 additions and 0 deletions.
3 changes: 3 additions & 0 deletions workspace/test/test-record/project.xod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "test-record"
}
1 change: 1 addition & 0 deletions workspace/test/test-record/record-nested/patch.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

41 changes: 41 additions & 0 deletions workspace/test/test-record/record-nested/patch.xodp
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"nodes": [
{
"id": "BJXxj64Uw",
"position": {
"units": "slots",
"x": 3,
"y": 0
},
"type": "xod/patch-nodes/input-number"
},
{
"id": "H1dgiaNID",
"position": {
"units": "slots",
"x": 1,
"y": 1
},
"type": "xod/patch-nodes/record"
},
{
"id": "H1yei6EIw",
"label": "REC",
"position": {
"units": "slots",
"x": 1,
"y": 0
},
"type": "@/input-record"
},
{
"id": "rJoeoaEIv",
"position": {
"units": "slots",
"x": 1,
"y": 2
},
"type": "xod/patch-nodes/output-self"
}
]
}
1 change: 1 addition & 0 deletions workspace/test/test-record/record/patch.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

52 changes: 52 additions & 0 deletions workspace/test/test-record/record/patch.xodp
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"nodes": [
{
"id": "B1BGfpVUw",
"position": {
"units": "slots",
"x": 1,
"y": 2
},
"type": "xod/patch-nodes/output-self"
},
{
"id": "ByvMz6EUv",
"position": {
"units": "slots",
"x": 1,
"y": 1
},
"type": "xod/patch-nodes/record"
},
{
"id": "SyEbfpVUw",
"label": "N",
"position": {
"units": "slots",
"x": 1,
"y": 0
},
"type": "xod/patch-nodes/input-number"
},
{
"id": "r1Us9TNUD",
"label": "BOOL",
"position": {
"units": "slots",
"x": 5,
"y": 0
},
"type": "xod/patch-nodes/input-boolean"
},
{
"id": "ryPZfp4ID",
"label": "B",
"position": {
"units": "slots",
"x": 3,
"y": 0
},
"type": "xod/patch-nodes/input-byte"
}
]
}
3 changes: 3 additions & 0 deletions workspace/test/test-record/test-2/patch.test.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
IN1 IN2 OUT1 OUT2
1 1d 1 1d
2 2d 2 2d
73 changes: 73 additions & 0 deletions workspace/test/test-record/test-2/patch.xodp
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"links": [
{
"id": "Bysv9TELD",
"input": {
"nodeId": "BkKDcTNUP",
"pinKey": "__in__"
},
"output": {
"nodeId": "SJ8D9pNLw",
"pinKey": "__out__"
}
},
{
"id": "ryGk5aEIv",
"input": {
"nodeId": "HygJcTVUw",
"pinKey": "__in__"
},
"output": {
"nodeId": "S1EQQ64IP",
"pinKey": "__out__"
}
}
],
"nodes": [
{
"id": "BkKDcTNUP",
"position": {
"units": "slots",
"x": 4,
"y": 2
},
"type": "xod/patch-nodes/output-byte"
},
{
"id": "BkVy56N8v",
"position": {
"units": "slots",
"x": 6,
"y": 1
},
"type": "xod/patch-nodes/tabtest"
},
{
"id": "HygJcTVUw",
"position": {
"units": "slots",
"x": 2,
"y": 2
},
"type": "xod/patch-nodes/output-number"
},
{
"id": "S1EQQ64IP",
"position": {
"units": "slots",
"x": 2,
"y": 0
},
"type": "xod/patch-nodes/input-number"
},
{
"id": "SJ8D9pNLw",
"position": {
"units": "slots",
"x": 4,
"y": 0
},
"type": "xod/patch-nodes/input-byte"
}
]
}
4 changes: 4 additions & 0 deletions workspace/test/test-record/test-nested-record/patch.test.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
IN1 IN2 IN3 IN4 OUT1 OUT2 OUT3 OUT4
23 42d true 77.5 23 42d true 77.5
10 42d false 77.5 10 42d false 77.5
70.523 2d false 106 70.523 2d false 106
Loading

0 comments on commit 40047a6

Please sign in to comment.