test for constants with brackets and parens