def test_ast_require():
 can_compile(u'(require tests.resources.tlib)')
 can_compile(u'(require [tests.resources.tlib [qplah parald]])')
 can_compile(u'(require [tests.resources.tlib [*]])')
 can_compile(u'(require [tests.resources.tlib :as foobar])')
 can_compile(u'(require [tests.resources.tlib [qplah :as quiz]])')
 can_compile(u'(require [tests.resources.tlib [qplah :as quiz parald]])')
 cant_compile(u'(require [tests.resources.tlib])')
 cant_compile(u'(require [tests.resources.tlib [* qplah]])')
 cant_compile(u'(require [tests.resources.tlib [qplah *]])')
 cant_compile(u'(require [tests.resources.tlib [* *]])')

def test_ast_require ( ) : can_compile ( u'(require tests.resources.tlib)' ) can_compile ( u'(require [tests.resources.tlib [qplah parald]])' ) can_compile ( u'(require [tests.resources.tlib [*]])' ) can_compile ( u'(require [tests.resources.tlib :as foobar])' ) can_compile ( u'(require [tests.resources.tlib [qplah :as quiz]])' ) can_compile ( u'(require [tests.resources.tlib [qplah :as quiz parald]])' ) cant_compile ( u'(require [tests.resources.tlib])' ) cant_compile ( u'(require [tests.resources.tlib [* qplah]])' ) cant_compile ( u'(require [tests.resources.tlib [qplah *]])' ) cant_compile ( u'(require [tests.resources.tlib [* *]])' )
make sure ast respects syntax .