tests/unittests: fix typos
This commit is contained in:
parent
1d15fc5ddd
commit
90d2e6ac8b
@ -97,7 +97,7 @@ make term
|
||||
```
|
||||
|
||||
## Writing unit tests
|
||||
### File struture
|
||||
### File structure
|
||||
RIOT uses [*embUnit*](http://embunit.sourceforge.net/) for unit testing.
|
||||
All unit tests are organized in ``tests/unittests`` and can be built module-wise, if needed.
|
||||
For each module there exists a ``tests-<modulename>/tests-<modulename>.h`` file, at least one C file in ``tests-<modulename>/`` and a ``tests-<modulename>/Makefile``.
|
||||
|
||||
@ -573,7 +573,7 @@ const char* const A[1000] = {"osteopathic"
|
||||
,"culilawan"
|
||||
,"trigonocephalous"
|
||||
,"Musca"
|
||||
,"donnot"
|
||||
,"donot"
|
||||
,"lobose"
|
||||
,"Suevian"
|
||||
,"Frenchwise"
|
||||
|
||||
@ -464,7 +464,7 @@ static void test_fib_12_get_next_hop_fail(void)
|
||||
}
|
||||
|
||||
/*
|
||||
* @brief get next hop for known destination but unsufficient size for the output
|
||||
* @brief get next hop for known destination but insufficient size for the output
|
||||
* It is expected to get no next hop and receive -ENOBUFS
|
||||
*/
|
||||
static void test_fib_13_get_next_hop_fail_on_buffer_size(void)
|
||||
|
||||
@ -51,7 +51,7 @@ static fib_table_t test_fib_sr_table;
|
||||
|
||||
/*
|
||||
* @brief helper function to create source routes.
|
||||
* The enrties are constructed with the given prefix and numbers
|
||||
* The entries are constructed with the given prefix and numbers
|
||||
* counted from the given count borders (from and to).
|
||||
* @param[in] pre prefix string to use
|
||||
* @param[in] from starting index to count from
|
||||
|
||||
@ -154,7 +154,7 @@ static void test_nib_nc_set__success_duplicate(void)
|
||||
* Creates GNRC_IPV6_NIB_NUMOF neighbor cache entries with different addresses
|
||||
* and interfaces and then tries to delete one with yet another address.
|
||||
* Expected result: There should be still GNRC_IPV6_NIB_NUMOF entries in the
|
||||
* neigbor cache
|
||||
* neighbor cache
|
||||
*/
|
||||
static void test_nib_nc_del__unknown(void)
|
||||
{
|
||||
|
||||
@ -336,7 +336,7 @@ static void test_nib_pl_set__success(void)
|
||||
* Creates MAX_NUMOF prefix list entries with different prefix and interfaces
|
||||
* and then tries to delete one with yet another prefix and interface.
|
||||
* Expected result: There should be still GNRC_IPV6_NIB_NUMOF entries in the
|
||||
* neigbor cache
|
||||
* neighbor cache
|
||||
*/
|
||||
static void test_nib_pl_del__unknown(void)
|
||||
{
|
||||
|
||||
@ -61,7 +61,7 @@ static void test_hashes_hmac_sha256_hash_sequence(void)
|
||||
}
|
||||
|
||||
/*
|
||||
The followig testcases are taken from:
|
||||
The following testcases are taken from:
|
||||
https://tools.ietf.org/html/rfc4868#section-2.7.1
|
||||
*/
|
||||
|
||||
@ -186,7 +186,7 @@ static void test_hashes_hmac_sha256_ite_hash_sequence(void)
|
||||
}
|
||||
|
||||
/*
|
||||
The followig testcases are taken from:
|
||||
The following testcases are taken from:
|
||||
https://tools.ietf.org/html/rfc4868#section-2.7.1
|
||||
*/
|
||||
|
||||
|
||||
@ -28,7 +28,7 @@
|
||||
/**
|
||||
* @brief expected SHA3-256 hash for test 01
|
||||
*
|
||||
* All test values taken from the Keccak code pacakge:
|
||||
* All test values taken from the Keccak code package:
|
||||
* https://github.com/gvanas/KeccakCodePackage
|
||||
* Files: TestVectors/ShortMsgKAT_SHA3-256.txt, TestVectors/ShortMsgKAT_SHA3-384.txt,
|
||||
* TestVectors/ShortMsgKAT_SHA3-512.txt
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user