Skip to content

Commit

Permalink
tests for catmaid neuron queries
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferis committed Oct 24, 2014
1 parent 5197a82 commit 59d9474
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/testthat/test-fetch.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,17 @@ test_that("get neuron names", {
structure(c("IPC10", "IPC1"), .Names = c("10418394", "4453485")))
}
})

context("catmaid neuron queries")

test_that("get neuron", {
if(!inherits(conn, 'try-error')){
expect_is(skel<-catmaid_get_compact_skeleton(pid=1, skid=10418394, conn=conn), 'list')
}
})

test_that("read.neron.catmaid", {
if(!inherits(conn, 'try-error')){
expect_is(skel<-read.neuron.catmaid(pid=1, skid=10418394, conn=conn), 'neuron')
}
})

0 comments on commit 59d9474

Please sign in to comment.