Skip to content

Commit

Permalink
Fix Jzazbz tests (#366)
Browse files Browse the repository at this point in the history
The first two test cases were miscalculated. Results were verified with
the official Matlab script:
https://opticapublishing.figshare.com/articles/code/JzAzBz_m/5016299
  • Loading branch information
facelessuser committed Nov 28, 2023
1 parent 9124e50 commit c7efc44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/conversions.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,11 @@ const tests = {
tests: [
{
args: ["color(jzazbz 0.5 0 0)", "xyz-d65"],
expect: [8.103011, 8.39796, 6.924744]
expect: [7.986957, 8.397692, 9.136922]
},
{
args: ["color(jzazbz 1 0 0)", "xyz-d65"],
expect: [48.887976, 50.667498, 41.779127]
expect: [48.187785, 50.665878, 55.125885]
},
{
args: ["color(jzazbz 0.1 -0.05 0.05)", "xyz-d65"],
Expand Down
4 changes: 2 additions & 2 deletions tests/conversions.html
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ <h1>Jzazbz</h1>
convertToXYZ();
</script>
</td>
<td>8.103011, 8.39796, 6.924744</td>
<td>7.986957, 8.397692, 9.136922</td>
</tr>
<tr title="Jzazbz to XYZ">
<td>color(jzazbz 1 0 0)</td>
Expand All @@ -428,7 +428,7 @@ <h1>Jzazbz</h1>
convertToXYZ();
</script>
</td>
<td>48.887976, 50.667498, 41.779127</td>
<td>48.187785, 50.665878, 55.125885</td>
</tr>
<tr title="Jzazbz to XYZ">
<td>color(jzazbz 0.1 -0.05 0.05)</td>
Expand Down

0 comments on commit c7efc44

Please sign in to comment.