Skip to content

Commit

Permalink
Update unit_tests.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
jefersonla committed Nov 10, 2015
1 parent cc2b81c commit 859418e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions tests/unit_tests/unit_tests.ino
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ void setup(){
delay(FIVE_SECONDS);

// Change mode
remote_control.setState(true);
remote_control.setMode(mode_cool);

// Retrieve mode
Expand Down Expand Up @@ -159,30 +160,30 @@ void setup(){
remote_control.emit();
delay(FIVE_SECONDS);

// Change speed fan
// Change state
remote_control.setState(false);

// Retrieve mode
if(remote_control.getSpeedFan() == false)
// Retrieve state
if(remote_control.getState() == false)
Serial.println(F("Set state false - 'turn off' - change OK"));
else
Serial.println(F("Set state false - 'turn off' - change FAIL"));

// Try to set this mode on the Air conditioner
// Try to set this state on the Air conditioner
Serial.println(F("Trying to set state false (turn off)..."));
remote_control.emit();
delay(FIVE_SECONDS);

// Change speed fan
// Change state
remote_control.setState(true);

// Retrieve mode
if(remote_control.getSpeedFan() == true)
if(remote_control.getState() == true)
Serial.println(F("Set state true - 'turn on' - change OK"));
else
Serial.println(F("Set state true - 'turn on' - change FAIL"));

// Try to set this mode on the Air conditioner
// Try to set this state on the Air conditioner
Serial.println(F("Trying to set state true (turn on)..."));
remote_control.emit();
delay(FIVE_SECONDS);
Expand Down

0 comments on commit 859418e

Please sign in to comment.