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

Functions

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

Variables

local 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()

local function assert_eq ( actual ,
expected ,
cmp  )

◆ current_level()

local function current_level ( )

◆ deep_cmp()

local function deep_cmp ( x ,
y  )

◆ fail()

local function fail ( msg )

◆ format_level()

local function format_level ( l )

◆ format_line()

local function format_line ( l )

◆ format_source()

local function format_source ( s )

◆ max_level()

local function max_level ( )

◆ setup_hook()

local function setup_hook ( cur_level )

◆ wrap_stdout()

local 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

local utils = require "nngn.lib.utils"

◆ wrap_stdout

wrap_stdout = wrap_stdout