diff --git a/tests/unittests/README.md b/tests/unittests/README.md index f22d98e5d8..23ab2a9587 100644 --- a/tests/unittests/README.md +++ b/tests/unittests/README.md @@ -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-/tests-.h`` file, at least one C file in ``tests-/`` and a ``tests-/Makefile``. diff --git a/tests/unittests/tests-bloom/tests-bloom-sets.h b/tests/unittests/tests-bloom/tests-bloom-sets.h index f2d7d20b95..c8c6177bb3 100644 --- a/tests/unittests/tests-bloom/tests-bloom-sets.h +++ b/tests/unittests/tests-bloom/tests-bloom-sets.h @@ -573,7 +573,7 @@ const char* const A[1000] = {"osteopathic" ,"culilawan" ,"trigonocephalous" ,"Musca" -,"donnot" +,"donot" ,"lobose" ,"Suevian" ,"Frenchwise" diff --git a/tests/unittests/tests-fib/tests-fib.c b/tests/unittests/tests-fib/tests-fib.c index 9fe83118c4..154ee658bb 100644 --- a/tests/unittests/tests-fib/tests-fib.c +++ b/tests/unittests/tests-fib/tests-fib.c @@ -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) diff --git a/tests/unittests/tests-fib_sr/tests-fib_sr.c b/tests/unittests/tests-fib_sr/tests-fib_sr.c index 798d1cf418..0af1942cdb 100644 --- a/tests/unittests/tests-fib_sr/tests-fib_sr.c +++ b/tests/unittests/tests-fib_sr/tests-fib_sr.c @@ -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 diff --git a/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-nc.c b/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-nc.c index 6c530b53ed..e47c560c32 100644 --- a/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-nc.c +++ b/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-nc.c @@ -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) { diff --git a/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-pl.c b/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-pl.c index 7cbbaeb816..ed11e0d60e 100644 --- a/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-pl.c +++ b/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-pl.c @@ -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) { diff --git a/tests/unittests/tests-hashes/tests-hashes-sha256-hmac.c b/tests/unittests/tests-hashes/tests-hashes-sha256-hmac.c index 48d592fce6..7b75df324d 100644 --- a/tests/unittests/tests-hashes/tests-hashes-sha256-hmac.c +++ b/tests/unittests/tests-hashes/tests-hashes-sha256-hmac.c @@ -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 */ diff --git a/tests/unittests/tests-hashes/tests-hashes-sha3.c b/tests/unittests/tests-hashes/tests-hashes-sha3.c index dbb41051e0..1422a0da46 100644 --- a/tests/unittests/tests-hashes/tests-hashes-sha3.c +++ b/tests/unittests/tests-hashes/tests-hashes-sha3.c @@ -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