#! /bin/bash test_ids() { local two_levels='{ "Branches": { "id": { "Branches": { "subid": { "Branches": {} } } } } }' notnotea eval "$(cat < /dev/null || return 101 (ids; true) | grep '^id\/subid$' > /dev/null || return 102 ids | wc -l | grep 2 > /dev/null || return 103 EOF )" } test_meta() { local two_levels='{ "Branches": { "id": { "Leaf": {"Title": "top level"}, "Branches": { "subid": { "Leaf": {"Title": "sub level"}, "Branches": {} } } } } }' notnotea eval "$(cat <