aboutsummaryrefslogtreecommitdiff
path: root/tests/lib/hexstrtobin-test.c
diff options
context:
space:
mode:
authorJakub Czapiga <jacz@semihalf.com>2022-01-10 13:36:47 +0000
committerFelix Held <felix-coreboot@felixheld.de>2022-01-14 14:29:29 +0000
commitc08b6a7037e4dd21f08a2fc8d40db51c7b4e051b (patch)
treebcab84b0853151766b0fe4a3c324e962fb05bb4c /tests/lib/hexstrtobin-test.c
parent63ec2ac97aab17a7e5c8e929c96a188bcd59b9c0 (diff)
tests: Fix tests code and comments style
This patch applies clang-format settings to most of tests files. Some files were fixed "by-hand" to exclude some lines, which whould be less readable after automatic style fixing. Moreover, some comments (mostly in tests/lib/edid-test.c) were adjusted to match coreboot coding style guidelines. Change-Id: I69f25a7b6d8265800c731754e2fbb2255f482134 Signed-off-by: Jakub Czapiga <jacz@semihalf.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60970 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Diffstat (limited to 'tests/lib/hexstrtobin-test.c')
-rw-r--r--tests/lib/hexstrtobin-test.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/hexstrtobin-test.c b/tests/lib/hexstrtobin-test.c
index f096b9b9e7..aaad0d6b31 100644
--- a/tests/lib/hexstrtobin-test.c
+++ b/tests/lib/hexstrtobin-test.c
@@ -12,11 +12,11 @@ struct hexstr_t {
size_t res;
} hexstr[] = {
{.str = "A", .res = 0},
- {.str = "AB", .val = (int[]) {171}, .res = 1},
- {.str = "277a", .val = (int[]) {39, 122}, .res = 2},
- {.str = "277ab", .val = (int[]) {39, 122}, .res = 2},
- {.str = "\n\rx1234567ijkl", .val = (int[]) {18, 52, 86}, .res = 3},
- {.str = "\nB*e/ef-", .val = (int[]) {190, 239}, .res = 2},
+ {.str = "AB", .val = (int[]){171}, .res = 1},
+ {.str = "277a", .val = (int[]){39, 122}, .res = 2},
+ {.str = "277ab", .val = (int[]){39, 122}, .res = 2},
+ {.str = "\n\rx1234567ijkl", .val = (int[]){18, 52, 86}, .res = 3},
+ {.str = "\nB*e/ef-", .val = (int[]){190, 239}, .res = 2},
};
static void test_hexstrtobin(void **state)