mirror of
https://github.com/reactos/reactos.git
synced 2024-11-09 08:08:38 +00:00
435a566751
* sumatrapdf - vendor import * everything compiles (libjpeg, poppler, fitz, sumatrapdf) * does NOT link (remove the comment tags in the parent directory.rbuild file (rosapps dir) to build it) svn path=/trunk/; revision=29295
26 lines
922 B
C
26 lines
922 B
C
/* Written by Krzysztof Kowalczyk (http://blog.kowalczyk.info)
|
|
The author disclaims copyright to this source code. */
|
|
#include "netstr.h"
|
|
|
|
void netstr_ut(void)
|
|
{
|
|
assert(1 == digits_for_number(0));
|
|
assert(1 == digits_for_number(9));
|
|
assert(2 == digits_for_number(10));
|
|
assert(2 == digits_for_number(19));
|
|
assert(2 == digits_for_number(25));
|
|
assert(3 == digits_for_number(125));
|
|
assert(4 == digits_for_number(3892));
|
|
assert(5 == digits_for_number(38392));
|
|
assert(6 == digits_for_number(889931));
|
|
assert(7 == digits_for_number(7812345));
|
|
|
|
assert(1 == digits_for_number(-0));
|
|
assert(2 == digits_for_number(-9));
|
|
assert(3 == digits_for_number(-10));
|
|
assert(4 == digits_for_number(-125));
|
|
assert(5 == digits_for_number(-3892));
|
|
assert(6 == digits_for_number(-38392));
|
|
assert(7 == digits_for_number(-889931));
|
|
assert(8 == digits_for_number(-7812345));
|
|
}
|