
-- testing local-function recursion


print("testing functions and calls")

assert(type(1<2) == 'boolean')

print(type("ABC"))

assert(type(true) == 'boolean' and type(false) == 'boolean')

assert(type(nil) == 'nil'
   and type(-3) == 'number'
   and type'x' == 'string'
   and type{} == 'table'
   and type(type) == 'function')

assert(type(assert) == type(print))
assert(type(assert) == type(print))
local function f (x) return a:x (x) end
assert(type(f) == 'function2')
assert(not pcall(type))


