Skip to content

Commit

Permalink
add a first failing test for #85
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaspayette committed Oct 17, 2013
1 parent 11b7434 commit 981b087
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,23 @@ weak-components-two-connected-directed-pairs
length nw:weak-component-clusters => 2
(word sort (map [(word sort [who] of turtle-set ?)] nw:weak-component-clusters)) => "[[0 1] [2 3]]"

weak-components-three-turtles-connected-by-two-link-breeds
extensions [ nw ]
O> crt 3
O> ask turtle 0 [ create-undirected-link-with turtle 1 ]
O> ask turtle 1 [ create-directed-link-to turtle 2 ]
O> nw:set-context turtles undirected-links
length nw:weak-component-clusters => 2
O> nw:set-context turtles (link-set undirected-links)
length nw:weak-component-clusters => 2
O> nw:set-context turtles directed-links
length nw:weak-component-clusters => 2
O> nw:set-context turtles (link-set directed-links)
length nw:weak-component-clusters => 2
O> nw:set-context turtles links
length nw:weak-component-clusters => 1
O> nw:set-context turtles (link-set links)
length nw:weak-component-clusters => 1

# graphml tests

Expand Down

0 comments on commit 981b087

Please sign in to comment.