-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Still I expect moderate coverage, since: • I don't know how to test the +paletteditor functions, since they feature a GUI... it might be impossible to include them. • I don't really know how to test cprintf, being its functionality bound to the Java runtime of GUI matlab... again, what to do? • Still missing some genuine spots (e.g. diverging_cmap is untested).
- Loading branch information
1 parent
2a6d6fc
commit 89ea53d
Showing
7 changed files
with
149 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
X11_update() | ||
|
||
function X11_update() | ||
|
||
disp('TESTING upgrade of X11 colors [rgb.X11]') | ||
|
||
colorlab.enter | ||
close all | ||
clear | ||
|
||
here = pwd; | ||
root = erase(fileparts(mfilename('fullpath')),'.test'); | ||
cd(root) | ||
cd('+rgb/private') | ||
delete('X11_rgb_data.mat') | ||
cd(here) | ||
|
||
rgb.X11('white'); | ||
|
||
disp('>> All good!') | ||
disp('------------') | ||
|
||
end |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
cmocean_negative() | ||
|
||
function cmocean_negative() | ||
|
||
disp('TESTING negative lightness [palette.cmocean]') | ||
|
||
colorlab.enter | ||
close all | ||
clear | ||
|
||
map1 = get_palette('algae',256,'negative'); | ||
map2 = palette.cmocean('algae','negative'); | ||
|
||
assert(isequal(map1,map2)) | ||
|
||
disp('>> All good!') | ||
disp('------------') | ||
|
||
end |
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,20 @@ | ||
upgrade_crameri() | ||
|
||
function upgrade_crameri() | ||
|
||
disp('TESTING upgrading of crameri [private function]') | ||
|
||
here = pwd; | ||
root = erase(fileparts(mfilename('fullpath')),'.test'); | ||
cd(root) | ||
cd('crameri') | ||
disp('Release 7 [zenodo::5501399]') | ||
crameri_update(7,5501399) | ||
disp('Release 6 [zenodo::4153113]') | ||
crameri_update('6','4153113') | ||
cd(here) | ||
|
||
disp('>> All good!') | ||
disp('------------') | ||
|
||
end |
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,14 @@ | ||
install() | ||
|
||
function install() | ||
|
||
disp('TESTING (un)install procedures [+colorlab]') | ||
|
||
colorlab.vista | ||
colorlab.enter | ||
colorlab.leave | ||
|
||
disp('>> All good!') | ||
disp('------------') | ||
|
||
end |
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,23 @@ | ||
xkcd_update() | ||
|
||
function xkcd_update() | ||
|
||
disp('TESTING upgrade of xkcd colors [rgb.xkcd]') | ||
|
||
colorlab.enter | ||
close all | ||
clear | ||
|
||
here = pwd; | ||
root = erase(fileparts(mfilename('fullpath')),'.test'); | ||
cd(root) | ||
cd('+rgb/private') | ||
delete('xkcd_rgb_data.mat') | ||
cd(here) | ||
|
||
rgb.xkcd('white'); | ||
|
||
disp('>> All good!') | ||
disp('------------') | ||
|
||
end |