feature: vor und nachteile

This commit is contained in:
Hikyu
2026-05-31 13:54:31 +02:00
parent 552a947a1c
commit e3dad17446
23270 changed files with 3024794 additions and 200 deletions
+25
View File
@@ -0,0 +1,25 @@
/* IMPORT */
import {describe} from 'fava';
import {invert} from '../../dist/index.js';
/* MAIN */
describe ( 'invert', it => {
it ( 'gets the inverse of the color', t => {
const tests = [
[['#b37399'], '#4c8c66'],
[['black'], '#ffffff'],
[['#550e0c', 20 ], 'rgb(102, 59.4, 58.2)']
];
tests.forEach ( ([ args, output ]) => {
t.is ( invert ( ...args ), output );
});
});
});