Skip to content

Commit

Permalink
add test for catmaid_get_neuronnames
Browse files Browse the repository at this point in the history
* this enforces #6
  • Loading branch information
jefferis committed Apr 22, 2015
1 parent 6ec1041 commit dbcd282
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/testthat/test-fetch.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,10 @@ test_that("read.neuron.catmaid", {
expect_is(n<-read.neuron.catmaid(pid=1, skid=10418394, conn=conn), 'neuron')
}
})

test_that("catmaid_get_neuronnames", {
if(!inherits(conn, 'try-error')){
baseline=c(`4453485`="IPC1", `10418394`="IPC10")
expect_equal(catmaid_get_neuronnames(skids=c(4453485,10418394)), baseline)
}
})

0 comments on commit dbcd282

Please sign in to comment.