Changes in uspace/lib/c/test/stdlib.c [7d7bc09:75c430e3] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/test/stdlib.c
r7d7bc09 r75c430e3 361 361 } 362 362 363 /** abs function of positive number */364 PCUT_TEST(abs_pos)365 {366 int i;367 368 i = abs(1);369 PCUT_ASSERT_TRUE(i == 1);370 }371 372 /** abs function of negative number */373 PCUT_TEST(abs_neg)374 {375 int i;376 377 i = abs(-1);378 PCUT_ASSERT_TRUE(i == 1);379 }380 381 /** labs function of positive number */382 PCUT_TEST(labs_pos)383 {384 long li;385 386 li = labs(1);387 PCUT_ASSERT_TRUE(li == 1);388 }389 390 /** labs function of negative number */391 PCUT_TEST(labs_neg)392 {393 long li;394 395 li = labs(-1);396 PCUT_ASSERT_TRUE(li == 1);397 }398 399 /** llabs function of positive number */400 PCUT_TEST(llabs_pos)401 {402 long long lli;403 404 lli = llabs(1);405 PCUT_ASSERT_TRUE(lli == 1);406 }407 408 /** llabs function of negative number */409 PCUT_TEST(llabs_neg)410 {411 long long lli;412 413 lli = llabs(-1);414 PCUT_ASSERT_TRUE(lli == 1);415 }416 417 363 /** Integer division */ 418 364 PCUT_TEST(div_func)
Note:
See TracChangeset
for help on using the changeset viewer.