# -*- rd -*-

Time-stamp: <2009/06/02 11:28:41 Shinya Abe>

= Cue::References.en

== Register

==== CU_TEST_CASE(test)

Register tests.

It will be run that tests registered by this macro.

== Assertions

Sample is "sample/test/test_add.c"(comment out). 

==== CU_PASS(msg)

Passed.

==== CU_FAIL(msg)

Failed.

==== CU_ASSERT_TRUE(value)

Assert that value != 0.

==== CU_ASSERT_FALSE(value)

Assert that value == 0.

==== CU_ASSERT_INT_EQUAL(actual, expect)

Assert that actual == expect.

==== CU_ASSERT_INT_NOT_EQUAL(actual, expect)

Assert that actual != expect.

==== CU_ASSERT_STRING_EQUAL(actual, expect)

Assert that actual and expect are same strings.

==== CU_ASSERT_STRING_NOT_EQUAL(actual, expect)

Assert that actual and expect are different strings.

==== CU_ASSERT_NSTRING_EQUAL(actual, expect, count)

Assert that 1st count chars of actual and expected are the same.
   
==== CU_ASSERT_NSTRING_NOT_EQUAL(actual, expect, count)

Assert that 1st count chars of actual and expected are the differ.

==== CU_ASSERT_DOUBLE_EQUAL(actual, expect, granularity)

Assert that |actual - expect| <= granularity.

==== CU_ASSERT_DOUBLE_NOT_EQUAL(actual, expect, granularity)

Assert that |actual - expect| > granularity.
