mirror of
https://github.com/reactos/reactos.git
synced 2024-09-10 12:54:51 +00:00
![Klemens Friedl](/assets/img/avatar_default.png)
* 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
27 lines
922 B
C
27 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));
|
|
}
|