remove colour32 typedef, and just use a 4D vector.

This commit is contained in:
2025-07-07 11:49:39 +02:00
parent 9b9a20e226
commit ceea087a88
3 changed files with 11 additions and 40 deletions

View File

@@ -3,7 +3,6 @@
#include "../src/util/conf.h"
#include "../src/util/types.h"
#include "t_conf.h"
#include "t_util.h"
#include "test.h"
testdat tests[] = {
@@ -17,7 +16,7 @@ testdat tests[] = {
{"k=v (CRLF)", test_procbuf, &(struct test_procbuf){"k=v\r\na", "k", "v", 0} },
{"get", test_matchopt, &(struct test_matchopt){"key3", 2} },
{"invalid", test_matchopt, &(struct test_matchopt){"nono", -1} },
{"", test_colour32_endianess, NULL }, // NOTE: formatter is fucking with alignment making it use tabs @.@
// NOTE: formatter is fucking with alignment making it use tabs @.@
{"i32", test_procval_int, &(struct test_procval_int){"42", 42, CONF_I32} },
{"i32_neg", test_procval_int, &(struct test_procval_int){"-42", (u32)-42, CONF_I32} },
{"u32_max", test_procval_int, &(struct test_procval_int){"4294967295", UINT32_MAX, CONF_U64} },

View File

@@ -1,11 +0,0 @@
#pragma once
#include <stdint.h>
#include "../src/util/colour32.h"
#include "test.h"
int test_colour32_endianess(void *d) {
(void)d;
colour32 c = {0xFF000000}; // setting just the red channel
return assert_true(c.ch.r == 0xFF);
}