working on 250 color palet for cell

This commit is contained in:
2025-01-31 21:25:55 -08:00
parent 6935d05349
commit 3040b8ac5a
3 changed files with 118 additions and 6 deletions

View File

@@ -40,6 +40,12 @@ void tart_run(struct pickle_shelf* shelf) {
PICKLE(Test_create_cell) {
tart_byte f = 20;
tart_byte b = 40;
struct tart_cell cell_correct = {f, b, '1', 'f'};
struct tart_cell cell_test = tart_create_cell('f', '1', f, b);
#ifdef TART_RGB_COLOR
struct tart_rgb b = {80,80,80};
struct tart_rgb f = {80,80,80};
struct tart_cell cell_correct = {f, b, '1', 'f'};
@@ -48,6 +54,12 @@ void tart_run(struct pickle_shelf* shelf) {
ASSERT("Forground dose not match.",false);
if(!rgb_test(&cell_correct.background, &cell_test.background))
ASSERT("background dose not match.",false);
#else
if(DIFFERENT(&cell_correct.foreground, &cell_test.foreground))
ASSERT("Forground dose not match.",false);
if(DIFFERENT(&cell_correct.background, &cell_test.background))
ASSERT("background dose not match.",false);
#endif
if(DIFFERENT(cell_correct.style, cell_test.style))
ASSERT("style dose not match.",false);
if(DIFFERENT(cell_correct.display, cell_test.display))