summary refs log tree commit diff stats
path: root/doc
ModeNameSize
-rw-r--r--aerc-config.5.scd13282log stats plain blame
-rw-r--r--aerc-imap.5.scd1629log stats plain blame
-rw-r--r--aerc-maildir.5.scd976log stats plain blame
-rw-r--r--aerc-notmuch.5.scd1607log stats plain blame
-rw-r--r--aerc-search.1.scd1238log stats plain blame
-rw-r--r--aerc-sendmail.5.scd755log stats plain blame
-rw-r--r--aerc-smtp.5.scd1574log stats plain blame
-rw-r--r--aerc-templates.7.scd2197log stats plain blame
-rw-r--r--aerc-tutorial.7.scd5332log stats plain blame
-rw-r--r--aerc.1.scd8876log stats plain blame
ight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
-- Some primitives for tests.
--
-- Success indicators go to the terminal; failures go to the window.
-- I don't know what I am doing.

function check(x, msg)
  if x then
    io.write('.')
  else
    error(msg)
  end
end

function check_eq(x, expected, msg)
  if eq(x, expected) then
    io.write('.')
  else
    error(msg..'; got "'..x..'"')
  end
end

function eq(a, b)
  if type(a) ~= type(b) then return false end
  if type(a) == 'table' then
    if #a ~= #b then return false end
    for k, v in pairs(a) do
      if b[k] ~= v then
        return false
      end
    end
    for k, v in pairs(b) do
      if a[k] ~= v then
        return false
      end
    end
    return true
  end
  return a == b
end
span>; ++i) if (string(argv[i]) == flag) return argv[i+1]; return ""; } //// test harness int run_tests() { for (unsigned long i=0; i < sizeof(Tests)/sizeof(Tests[0]); ++i) { //? cerr << "running " << Test_names[i] << '\n'; START_TRACING_UNTIL_END_OF_SCOPE; setup(); (*Tests[i])(); verify(); } cerr << '\n'; if (Num_failures > 0) cerr << Num_failures << " failure" << (Num_failures > 1 ? "s" : "") << '\n'; return Num_failures; } void verify() { Hide_warnings = false; if (!Passed) ; else cerr << "."; } void setup() { Hide_warnings = false; Passed = true; }