Skip to content

Instantly share code, notes, and snippets.

@knowuh
Created March 21, 2012 19:38
Show Gist options
  • Save knowuh/2151852 to your computer and use it in GitHub Desktop.
Save knowuh/2151852 to your computer and use it in GitHub Desktop.
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