mirror of
https://github.com/johndoe6345789/AutoMetabuilder.git
synced 2026-04-24 13:54:59 +00:00
- Created var plugin directory with get, set, delete, exists plugins - Created test plugin directory with assert_equals, assert_true, assert_false, assert_exists, run_suite plugins - Updated plugin_map.json to register all new plugins (90 total plugins now) - Created 5 test packages: logic_plugins_test, math_plugins_test, string_plugins_test, list_plugins_test, dict_plugins_test - Added comprehensive unit tests for all new plugins - Updated documentation with test plugin information - All tests passing (16 workflow plugin tests + 11 unit testing plugin tests) Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
269 lines
5.9 KiB
JSON
269 lines
5.9 KiB
JSON
{
|
|
"name": "Logic Plugins Test Suite",
|
|
"active": false,
|
|
"nodes": [
|
|
{
|
|
"id": "test_and_true",
|
|
"name": "Test AND (all true)",
|
|
"type": "logic.and",
|
|
"typeVersion": 1,
|
|
"position": [0, 0],
|
|
"parameters": {
|
|
"values": [true, true, true]
|
|
}
|
|
},
|
|
{
|
|
"id": "assert_and_true",
|
|
"name": "Assert AND result is true",
|
|
"type": "test.assert_true",
|
|
"typeVersion": 1,
|
|
"position": [300, 0],
|
|
"parameters": {
|
|
"value": "$test_and_true.result",
|
|
"message": "logic.and with all true values should return true"
|
|
}
|
|
},
|
|
{
|
|
"id": "test_and_false",
|
|
"name": "Test AND (with false)",
|
|
"type": "logic.and",
|
|
"typeVersion": 1,
|
|
"position": [0, 100],
|
|
"parameters": {
|
|
"values": [true, false, true]
|
|
}
|
|
},
|
|
{
|
|
"id": "assert_and_false",
|
|
"name": "Assert AND result is false",
|
|
"type": "test.assert_false",
|
|
"typeVersion": 1,
|
|
"position": [300, 100],
|
|
"parameters": {
|
|
"value": "$test_and_false.result",
|
|
"message": "logic.and with any false value should return false"
|
|
}
|
|
},
|
|
{
|
|
"id": "test_or_true",
|
|
"name": "Test OR (with true)",
|
|
"type": "logic.or",
|
|
"typeVersion": 1,
|
|
"position": [0, 200],
|
|
"parameters": {
|
|
"values": [false, false, true]
|
|
}
|
|
},
|
|
{
|
|
"id": "assert_or_true",
|
|
"name": "Assert OR result is true",
|
|
"type": "test.assert_true",
|
|
"typeVersion": 1,
|
|
"position": [300, 200],
|
|
"parameters": {
|
|
"value": "$test_or_true.result",
|
|
"message": "logic.or with any true value should return true"
|
|
}
|
|
},
|
|
{
|
|
"id": "test_or_false",
|
|
"name": "Test OR (all false)",
|
|
"type": "logic.or",
|
|
"typeVersion": 1,
|
|
"position": [0, 300],
|
|
"parameters": {
|
|
"values": [false, false, false]
|
|
}
|
|
},
|
|
{
|
|
"id": "assert_or_false",
|
|
"name": "Assert OR result is false",
|
|
"type": "test.assert_false",
|
|
"typeVersion": 1,
|
|
"position": [300, 300],
|
|
"parameters": {
|
|
"value": "$test_or_false.result",
|
|
"message": "logic.or with all false values should return false"
|
|
}
|
|
},
|
|
{
|
|
"id": "test_equals_true",
|
|
"name": "Test Equals (same)",
|
|
"type": "logic.equals",
|
|
"typeVersion": 1,
|
|
"position": [0, 400],
|
|
"parameters": {
|
|
"a": 42,
|
|
"b": 42
|
|
}
|
|
},
|
|
{
|
|
"id": "assert_equals_true",
|
|
"name": "Assert Equals is true",
|
|
"type": "test.assert_true",
|
|
"typeVersion": 1,
|
|
"position": [300, 400],
|
|
"parameters": {
|
|
"value": "$test_equals_true.result",
|
|
"message": "logic.equals with same values should return true"
|
|
}
|
|
},
|
|
{
|
|
"id": "test_equals_false",
|
|
"name": "Test Equals (different)",
|
|
"type": "logic.equals",
|
|
"typeVersion": 1,
|
|
"position": [0, 500],
|
|
"parameters": {
|
|
"a": 42,
|
|
"b": 24
|
|
}
|
|
},
|
|
{
|
|
"id": "assert_equals_false",
|
|
"name": "Assert Equals is false",
|
|
"type": "test.assert_false",
|
|
"typeVersion": 1,
|
|
"position": [300, 500],
|
|
"parameters": {
|
|
"value": "$test_equals_false.result",
|
|
"message": "logic.equals with different values should return false"
|
|
}
|
|
},
|
|
{
|
|
"id": "test_gt",
|
|
"name": "Test Greater Than",
|
|
"type": "logic.gt",
|
|
"typeVersion": 1,
|
|
"position": [0, 600],
|
|
"parameters": {
|
|
"a": 10,
|
|
"b": 5
|
|
}
|
|
},
|
|
{
|
|
"id": "assert_gt",
|
|
"name": "Assert GT is true",
|
|
"type": "test.assert_true",
|
|
"typeVersion": 1,
|
|
"position": [300, 600],
|
|
"parameters": {
|
|
"value": "$test_gt.result",
|
|
"message": "logic.gt should return true when a > b"
|
|
}
|
|
},
|
|
{
|
|
"id": "test_lt",
|
|
"name": "Test Less Than",
|
|
"type": "logic.lt",
|
|
"typeVersion": 1,
|
|
"position": [0, 700],
|
|
"parameters": {
|
|
"a": 3,
|
|
"b": 7
|
|
}
|
|
},
|
|
{
|
|
"id": "assert_lt",
|
|
"name": "Assert LT is true",
|
|
"type": "test.assert_true",
|
|
"typeVersion": 1,
|
|
"position": [300, 700],
|
|
"parameters": {
|
|
"value": "$test_lt.result",
|
|
"message": "logic.lt should return true when a < b"
|
|
}
|
|
}
|
|
],
|
|
"connections": {
|
|
"Test AND (all true)": {
|
|
"main": {
|
|
"0": [
|
|
{
|
|
"node": "Assert AND result is true",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"Test AND (with false)": {
|
|
"main": {
|
|
"0": [
|
|
{
|
|
"node": "Assert AND result is false",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"Test OR (with true)": {
|
|
"main": {
|
|
"0": [
|
|
{
|
|
"node": "Assert OR result is true",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"Test OR (all false)": {
|
|
"main": {
|
|
"0": [
|
|
{
|
|
"node": "Assert OR result is false",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"Test Equals (same)": {
|
|
"main": {
|
|
"0": [
|
|
{
|
|
"node": "Assert Equals is true",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"Test Equals (different)": {
|
|
"main": {
|
|
"0": [
|
|
{
|
|
"node": "Assert Equals is false",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"Test Greater Than": {
|
|
"main": {
|
|
"0": [
|
|
{
|
|
"node": "Assert GT is true",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"Test Less Than": {
|
|
"main": {
|
|
"0": [
|
|
{
|
|
"node": "Assert LT is true",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|