Fix spelling (#128)

* Fix spelling in .cpp files

* Fix spelling in all files
This commit is contained in:
Yaya-Cout
2022-01-20 17:21:35 +01:00
committed by GitHub
parent e575ffc7ce
commit 169fb7404e
215 changed files with 424 additions and 425 deletions

View File

@@ -61,7 +61,7 @@ SECTIONS {
/* The data section is written to Flash but linked as if it were in RAM.
*
* This is required because its initial value matters (so it has to be in
* persistant memory in the first place), but it is a R/W area of memory
* persistent memory in the first place), but it is a R/W area of memory
* so it will have to live in RAM upon execution (in linker lingo, that
* translates to the data section having a LMA in Flash and a VMA in RAM).
*

View File

@@ -3,15 +3,15 @@
#include <ion/unicode/utf8_helper.h>
#include <string.h>
void assert_occurences_count(const char * string, CodePoint c, int result) {
void assert_occurrences_count(const char * string, CodePoint c, int result) {
quiz_assert(UTF8Helper::CountOccurrences(string, c) == result);
}
QUIZ_CASE(ion_utf8_helper_count_occurrences) {
assert_occurences_count("1234", '1', 1);
assert_occurences_count("2232", '2', 3);
assert_occurences_count("2π2∑32∑", UCodePointGreekSmallLetterPi, 1);
assert_occurences_count("2π2∑32∑", UCodePointNArySummation, 2);
assert_occurrences_count("1234", '1', 1);
assert_occurrences_count("2232", '2', 3);
assert_occurrences_count("2π2∑32∑", UCodePointGreekSmallLetterPi, 1);
assert_occurrences_count("2π2∑32∑", UCodePointNArySummation, 2);
}
void assert_code_point_searched_is(const char * string, CodePoint c, const char * result) {