10 lines
249 B
Groovy
10 lines
249 B
Groovy
try {
|
|
new BinaryNodeBuilder().'1' {
|
|
a {}
|
|
b {}
|
|
c {}
|
|
}
|
|
println 'not limited to binary tree\r\n'
|
|
} catch (org.codehaus.groovy.transform.powerassert.PowerAssertionError e) {
|
|
println 'limited to binary tree\r\n'
|
|
}
|