Permalink
Browse files

add a test case

  • Loading branch information...
1 parent 8c93905 commit a91ba25350e14fa43fc1de60026d8407727e1378 Yuest Wang committed May 25, 2012
Showing with 10 additions and 1 deletion.
  1. +10 −1 test/test.coffee
View
@@ -40,4 +40,13 @@ exports['Dependency ordering is consistent (issue #2)'] = (test) ->
depGraph.add 'Heart', 'Neck'
depGraph.add 'Neck', 'Shoulders'
test.deepEqual depGraph.getChain('Head'), ['Shoulders', 'Neck', 'Heart']
- test.done()
+ test.done()
+
+exports['Dependency not interfered by others (issue #6)'] = (test) ->
+ depGraph.add 'Jia', 'Yi'
+ depGraph.add 'Jia', 'Bing'
+ depGraph.add 'Jia', 'Ding'
+ depGraph.add 'Wu', 'Ding'
+ test.deepEqual depGraph.getChain('Wu'), ['Ding']
+ test.ok 'Jia' not in depGraph.getChain('Wu')
+ test.done()

0 comments on commit a91ba25

Please sign in to comment.