Skip to content

Commit

Permalink
Merge pull request #27 from kbroman/master
Browse files Browse the repository at this point in the history
Fix test error: Order of records returned by a query changed
  • Loading branch information
kbroman committed May 26, 2015
2 parents efff85a + add2ee3 commit 18cb53f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: aRxiv
Title: Interface to the arXiv API
Version: 0.5.9
Date: 2015-05-12
Version: 0.5.10
Date: 2015-05-26
Authors@R: c(person("Karthik", "Ram", role="aut",
email="karthik.ram@gmail.com"),
person("Karl", "Broman", rol=c("aut","cre"),
Expand Down
14 changes: 14 additions & 0 deletions tests/testthat/test-clean.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@ if(!on_cran) {
start=0, max_results=20,
sort_by="submitted"))
z <- get_entries(result2list(z))

# force a particular order
id <- sapply(z, "[[", "id")
exp_id <- c("http://arxiv.org/abs/astro-ph/9603156v3", "http://arxiv.org/abs/astro-ph/9612225v2",
"http://arxiv.org/abs/astro-ph/9612227v2", "http://arxiv.org/abs/astro-ph/9701001v1",
"http://arxiv.org/abs/astro-ph/9701002v1", "http://arxiv.org/abs/cond-mat/9705215v1",
"http://arxiv.org/abs/cs/9701101v1", "http://arxiv.org/abs/cs/9701102v1",
"http://arxiv.org/abs/gr-qc/9701001v1", "http://arxiv.org/abs/gr-qc/9701002v1",
"http://arxiv.org/abs/hep-th/9511114v4", "http://arxiv.org/abs/hep-th/9612056v2",
"http://arxiv.org/abs/hep-th/9701002v1", "http://arxiv.org/abs/hep-th/9702183v2",
"http://arxiv.org/abs/hep-th/9703045v3", "http://arxiv.org/abs/hep-th/9706029v1",
"http://arxiv.org/abs/physics/9701001v1", "http://arxiv.org/abs/q-alg/9610003v2",
"http://arxiv.org/abs/q-alg/9701001v1", "http://arxiv.org/abs/quant-ph/9701001v1")
z <- z[match(exp_id, id)]
}

test_that("clean_authors works right", {
Expand Down

0 comments on commit 18cb53f

Please sign in to comment.