diff --git a/b2/test/hierfld b/b2/test/hierfld new file mode 100755 index 0000000..cd0c672 --- /dev/null +++ b/b2/test/hierfld @@ -0,0 +1,82 @@ +#!/bin/bash +. ./Common + +# +# Note: the hierarchy dump differs in some details from the input format. +# Its main purpose is to aid with debugging, not to produce a syntactically +# valid representation of the currently loaded hierarchy. +# + +############################################################################### + +tst "hierarchy: name field" < = A }; +EOF + +expect < } +EOF + +#------------------------------------------------------------------------------ + +tst_fail "hierarchy: name set field (incorrect name)" < = A }; +EOF + +expect <