Here is one unexpected behavior I found. There seem to
be extra list layers on elements of the list returned
by get when that list element contains spaces or square
braces.
package require treeql
package require struct::tree
package require tcltest
namespace import tcltest::*
set t [struct::tree]; ::treeql q -tree $t
test get.1 {attributes with special characters} {
$t insert root end n1 n2 n3
$t set n1 title hello
$t set n2 title "hello there"
$t set n3 title {[hello]}
q query root children get title
} [list hello {hello there} {[hello]}]
$t destroy; q destroy
Output:
---- Result was:
hello {{{hello there}}} {{{[hello]}}}
---- Result should have been (exact matching):
hello {hello there} {[hello]}
==== get.1 FAILED
|