Skip to content

Commit

Permalink
[hue] fix JUnit tests for revised ColorUtil (#16559)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
  • Loading branch information
andrewfg committed Apr 28, 2024
1 parent 5765a94 commit 8329668
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,13 +265,13 @@ public void assertXYCommandForColorChannelBlack() {

@Test
public void assertXYCommandForColorChannelWhite() {
String expectedReply = "{\"xy\" : [ 0.3227 , 0.32900003 ], \"bri\" : 254, \"transitiontime\" : 4}";
String expectedReply = "{\"xy\" : [ 0.3227267 , 0.3290229 ], \"bri\" : 254, \"transitiontime\" : 4}";
assertSendCommandForColor(HSBType.WHITE, new HueLightState().colormode(ColorMode.XY), expectedReply);
}

@Test
public void assertXYCommandForColorChannelColorful() {
String expectedReply = "{\"xy\" : [ 0.14649999 , 0.115600005 ], \"bri\" : 127, \"transitiontime\" : 4}";
String expectedReply = "{\"xy\" : [ 0.14657576 , 0.115629844 ], \"bri\" : 127, \"transitiontime\" : 4}";
assertSendCommandForColor(new HSBType("220,90,50"), new HueLightState().colormode(ColorMode.XY), expectedReply);
}

Expand Down

0 comments on commit 8329668

Please sign in to comment.