test notea does not return recursive deleted
parent
1c6cdec2c0
commit
3a246f8b38
|
|
@ -9,7 +9,8 @@ test_ids() {
|
|||
"items": {
|
||||
"root": {
|
||||
"children": [
|
||||
"abc"
|
||||
"abc",
|
||||
"xyz"
|
||||
]
|
||||
},
|
||||
"abc": {
|
||||
|
|
@ -17,7 +18,18 @@ test_ids() {
|
|||
},
|
||||
"def": {
|
||||
"pid": "root"
|
||||
}
|
||||
},
|
||||
"xyz": {
|
||||
"pid": "root",
|
||||
"deleted": 1,
|
||||
"children": [
|
||||
"wvu"
|
||||
]
|
||||
},
|
||||
"wvu": {
|
||||
"pid": "xyz",
|
||||
"deleted": 0
|
||||
}
|
||||
}
|
||||
}'
|
||||
;;
|
||||
|
|
@ -33,6 +45,8 @@ test_ids() {
|
|||
}
|
||||
ids | wc -l | grep -q 1 || return 101
|
||||
ids | grep -q def || return 102
|
||||
! ids | grep -q wvu || return 103
|
||||
! ids | grep -q xyz || return 104
|
||||
EOF
|
||||
)"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue