Created
March 21, 2012 19:38
-
-
Save knowuh/2151852 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
sun_choloro = should_have.node('sun').link('light').node('choloroplast') | |
sun_plant = should_have.node('sun').link('light').node('plant').link('light').node('chloroplast') | |
chemical_sun = should_not_have.node('sun').link('chemical').feedback('the sun doesn't emit chemicals') | |
requirements << AndRule | |
'your diagram has problems' | |
chemical_sun | |
OrRule | |
'how does the plant get energy' | |
Rule.node('sun').link('light').node('choloroplast').feedback('how does the plant get energy'), | |
Rule.node('sun').link('light').node('plant').link('light').node('chloroplast') | |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment