-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
8708cd7
commit 18e3883
Showing
6 changed files
with
102 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/test/color/palette/palettes/miscellaneous/miscellaneous-palettes.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright (C) 2024 brittni and the polar bear LLC. | ||
* | ||
* This file is a part of brittni and the polar bear's Generative Art Library, | ||
* which is released under the GNU Affero General Public License, Version 3.0. | ||
* You may not use this file except in compliance with the license. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. See LICENSE or go to | ||
* https://www.gnu.org/licenses/agpl-3.0.en.html for full license details. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* See the GNU Affero General Public License for more details. | ||
*/ | ||
|
||
import {Palette} from 'palette'; | ||
import {BRITTNI, MISCELLANEOUS_PALETTES} from 'palettes'; | ||
|
||
import {checkForPaletteInMap, checkForValidStringMap} from 'unit-test/shared'; | ||
|
||
describe('miscellaneous palettes map test', (): void => { | ||
const ALL_MISC_PALETTES: [{name: string, palette: Palette}] = [ | ||
{name: BRITTNI.NAME, palette: BRITTNI} | ||
] | ||
|
||
test('valid map: MISCELLANEOUS_PALETTES', (): void => { | ||
checkForValidStringMap(MISCELLANEOUS_PALETTES, ALL_MISC_PALETTES.length); | ||
}); | ||
|
||
test.each( | ||
ALL_MISC_PALETTES | ||
)('$# palette successfully added to map: $name', | ||
({name, palette}): void => { | ||
expect(name).toBeTruthy(); | ||
checkForPaletteInMap(palette, MISCELLANEOUS_PALETTES); | ||
} | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters