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
Given a thermostat device joined to a network | |
When I send the device a drlc event with duration 100 minutes and end time randomization | |
Then I see event on the device | |
When I cancel the event with "terminate immediately" | |
Then I don't see the event on the device |
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
Given a thermostat not joined to a network | |
When I join it to the network | |
Then I see flashing green light while state is "scanning" | |
And I see steady green light for 3 seconds while state is "key establishment" | |
And I see no lights while state is "registered" |
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
Given a thermostat | |
When I navigate to "Smart Energy Setup"->"ZigBee Time" | |
And mark the time | |
And wait a minute | |
Then the time should be different |
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
Given a thermostat connected to the ddk | |
When I set the local level to <lock level> | |
Then the lock icon is displayed | |
and the setpoint cannot be changed | |
and the keypad will/will not unlock device <keypad unlocks it> | |
Examples: | |
| lock level |keypad unlocks it | | |
| 4 | yes | | |
| 5 | no | | |
| 4 | yes | |
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
Given a tstat at 16.5C | |
When I send a DRLC event with large setpoint offset of 15C | |
Then I see "Event Received" | |
And I see "Event Started" | |
But the tstat setpoint remains at 16.5C |
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
Given a thermostat joined to the ddk meter | |
When I send a 7 cent price event numbered as message N | |
Then I see the price is 7 cents on the thermostat display | |
When I send an 8 cent price event as message N | |
Then I see the price is still 7 cents | |
When I send an 8 cent price event as message N+1 | |
Then I see the price is 8 cents |
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
> rm -r ~/.m2/repository/.jruby/; rm -r ~/.m2/repository/org/jruby/; mvn -Dcucumber.installGems=true cuke4duke:cucumber | |
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building maven-cuke 1.0-SNAPSHOT | |
[INFO] ------------------------------------------------------------------------ | |
Downloading: http://build.tendrilinc.com:8081/nexus/content/groups/public/org/jruby/jruby-complete/1.6.1/jruby-complete-1.6.1.pom | |
Downloaded: http://build.tendrilinc.com:8081/nexus/content/groups/public/org/jruby/jruby-complete/1.6.1/jruby-complete-1.6.1.pom (3 KB at 6.4 KB/sec) | |
Downloading: http://build.tendrilinc.com:8081/nexus/content/groups/public/org/jruby/jruby-common/1.6.1/jruby-common-1.6.1.pom | |
Downloaded: http://build.tendrilinc.com:8081/nexus/content/groups/public/org/jruby/jruby-common/1.6.1/jruby-common-1.6.1.pom (5 KB at 138.7 KB/sec) |
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 was translated from Java to JRuby (as well as using some of | |
# JRuby's dynamicness to get rid of repetition) from the tutorial at | |
# http://jmonkeyengine.org/wiki/doku.php/jme3:beginner:hello_simpleapplication | |
require 'java' | |
# Import some JMonkey classes from a list | |
%w[ | |
app.SimpleApplication | |
material.Material |
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
(defn facto [n] (if (= 1 n) 1 (* n (facto (dec n))))) |
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
(def fib-seq (lazy-cat [0 1] | |
(map + fib-seq (rest fib-seq)))) |
OlderNewer