## DO NOT EDIT!
## Generated automatically from intervaltotext.cc
## by configure_make.m during package installation.

%!assert (intervaltotext (infsup (1 + eps), "exact decimal"), "[1.0000000000000002220446049250313080847263336181640625]");
%!assert (intervaltotext (infsup (1 + eps), "exact hexadecimal"), "[0x1.0000000000001p+0]");
%!assert (intervaltotext (infsup (pi), "[.3g]"), "[3.14, 3.15]");
%!assert (intervaltotext (infsup (pi), "[.4g]"), "[3.141, 3.142]");
%!assert (intervaltotext (infsup (1 + eps)), "[1, 1.00001]");
%!assert (intervaltotext (infsup (1)), "[1]");
%!assert (reshape (intervaltotext (infsup (reshape (1:120, 2, 3, 4, 5))), 1, 120), intervaltotext (infsup (1:120)));
%!assert (intervaltotext (infsupdec (1 + eps), "exact decimal"), "[1.0000000000000002220446049250313080847263336181640625]_com");
%!assert (intervaltotext (infsupdec (1 + eps), "exact hexadecimal"), "[0x1.0000000000001p+0]_com");
%!assert (intervaltotext (infsupdec (1 + eps)), "[1, 1.00001]_com");
%!assert (intervaltotext (infsupdec (1)), "[1]_com");
%!assert (reshape (intervaltotext (infsupdec (reshape (1:120, 2, 3, 4, 5))), 1, 120), intervaltotext (infsupdec (1:120)));
%!assert (intervaltotext (infsup (2, 3), "[g]"), "[2, 3]");
%!assert (intervaltotext (infsup (2, 3), "9:[g]"), "[  2,  3]");
%!assert (intervaltotext (infsup (), "[g]"), "[Empty]");
%!assert (intervaltotext (infsup (), "9:[g]"), "[ Empty ]");
%!assert (intervaltotext (infsup (2, 3), "g"), "2 3");
%!assert (intervaltotext (infsupdec (2, 3), "g"), "2 3 _com");
%!assert (intervaltotext (infsup (), "[Cg]"), "[EMPTY]");
%!assert (intervaltotext (infsup (), "[cg]"), "[empty]");
%!assert (intervaltotext (infsup (-inf, inf), "[g]"), "[Entire]");
%!assert (intervaltotext (infsup (-inf, inf), "[<g]"), "[-inf, +inf]");
%!assert (intervaltotext (infsup (-inf, inf), "[<+g]"), "[-inf, +inf]");
%!assert (intervaltotext (infsup (-inf, inf), "[< g]"), "[-inf, inf]");
%!assert (intervaltotext (infsup (2, 3), "[3g]"), "[  2,   3]");
%!assert (intervaltotext (infsup (2, 3), "[-3g]"), "[2  , 3  ]");
%!assert (intervaltotext (infsup (2, 3), "[03g]"), "[002, 003]");
%!assert (intervaltotext (infsup (-inf, inf), "[5g]"), "[Entire]");
%!assert (intervaltotext (infsup (-inf, inf), "[<5g]"), "[ -inf,  +inf]");
%!assert (intervaltotext (infsup (-inf, inf), "[<-5g]"), "[-inf , +inf ]");
%!assert (intervaltotext (infsup (-inf, inf), "[<05g]"), "[ -inf,  +inf]");
%!assert (intervaltotext (infsup (2, 3), "[+g]"), "[+2, +3]");
%!assert (intervaltotext (infsup (2, 3), "[ g]"), "[2, 3]");
%!assert (intervaltotext (infsup (2, 3), "[g]"), "[2, 3]");
%!assert (intervaltotext (infsup (-2, 3), "[+g]"), "[-2, +3]");
%!assert (intervaltotext (infsup (-2, 3), "[ g]"), "[-2, 3]");
%!assert (intervaltotext (infsup (-2, 3), "[g]"), "[-2, +3]");
%!assert (intervaltotext (infsup (2, 3), "[f]"), "[2.000000, 3.000000]");
%!assert (intervaltotext (infsup (2, 3), "[e]"), "[2.000000e+00, 3.000000e+00]");
%!assert (intervaltotext (infsup (2, 3), "[E]"), "[2.000000E+00, 3.000000E+00]");
%!assert (intervaltotext (infsup (-inf, inf), "[<F]"), "[-INF, +INF]");
%!assert (intervaltotext (infsup (2, 3), "?g"), "2.5?5");
%!assert (intervaltotext (infsup (2, 3), "9:?g"), "    2.5?5");
%!assert (intervaltotext (infsup (), "?g"), "[Empty]");
%!assert (intervaltotext (infsup (), "9:?g"), "[ Empty ]");
%!assert (intervaltotext (infsup (), "C?g"), "[EMPTY]");
%!assert (intervaltotext (infsup (), "c?g"), "[empty]");
%!assert (intervaltotext (infsup (-inf, inf), "?g"), "0??");
%!assert (intervaltotext (infsup (2, 3), "4?g"), " 2.5?5");
%!assert (intervaltotext (infsup (2, 3), "?3g"), "2.5?005");
%!assert (intervaltotext (infsup (2, 3), "04?g"), "02.5?5");
%!assert (intervaltotext (infsup (2, 3), "+?g"), "+2.5?5");
%!assert (intervaltotext (infsup (2, 3), "?f"), "2.500000?500000");
%!assert (intervaltotext (infsup (2, 3), "?e"), "2.500000?500000e+00");
%!assert (intervaltotext (infsup (2, 3), "?E"), "2.500000?500000E+00");
