nngn
Loading...
Searching...
No Matches
common.lua File Reference

Functions

function current_level ()
 
function max_level ()
 
function format_source (s)
 
function format_line (l)
 
function format_level (l)
 
function setup_hook (cur_level)
 
function fail (msg)
 
function deep_cmp (x, y)
 
function assert_eq (actual, expected, cmp)
 
function wrap_stdout (f)
 

Variables

 utils = require "nngn.lib.utils"
 
 setup_hook = setup_hook
 
 fail = fail
 
 deep_cmp = deep_cmp
 
 assert_eq = assert_eq
 
 wrap_stdout = wrap_stdout
 

Function Documentation

◆ assert_eq()

function assert_eq ( actual  ,
expected  ,
cmp   
)

◆ current_level()

function current_level ( )

◆ deep_cmp()

function deep_cmp ( ,
 
)

◆ fail()

function fail ( msg  )

◆ format_level()

function format_level ( l  )

◆ format_line()

function format_line ( l  )

◆ format_source()

function format_source ( s  )

◆ max_level()

function max_level ( )

◆ setup_hook()

function setup_hook ( cur_level  )

◆ wrap_stdout()

function wrap_stdout ( f  )

Variable Documentation

◆ assert_eq

assert_eq = assert_eq

◆ deep_cmp

deep_cmp = deep_cmp

◆ fail

fail = fail

◆ setup_hook

setup_hook = setup_hook

◆ utils

utils = require "nngn.lib.utils"

◆ wrap_stdout

wrap_stdout = wrap_stdout