Skip to content

Commit

Permalink
Fix date range test; new 2013 arXiv manuscript added changed expected…
Browse files Browse the repository at this point in the history
… count

 - Going with an older year, for the test; less likely for results to change
  • Loading branch information
kbroman committed Nov 6, 2014
1 parent a7a7205 commit 5ecc159
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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.4
Date: 2014-10-18
Version: 0.5.5
Date: 2014-11-06
Authors@R: c(person("Karthik", "Ram", role="aut",
email="karthik.ram@gmail.com"),
person("Karl", "Broman", rol=c("aut","cre"),
Expand Down
7 changes: 3 additions & 4 deletions tests/testthat/test-date_range.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

context("search range of dates")

test_that("search date ranges is quirky", {
Expand All @@ -13,10 +12,10 @@ test_that("search date ranges is quirky", {
expect_equal( omit_attr( arxiv_count("submittedDate:2013*") ), 0)

# * is the same as truncating; completed to earliest time with that stem
expect_equal( omit_attr( arxiv_count("submittedDate:[20130101* TO 20131231*]") ), 92677)
expect_equal( omit_attr( arxiv_count("submittedDate:[20130101 TO 20131231]") ), 92677)
expect_equal( omit_attr( arxiv_count("submittedDate:[19920101* TO 19921231*]") ), 3182)
expect_equal( omit_attr( arxiv_count("submittedDate:[19920101 TO 19921231]") ), 3182)

# to search a single year, use that year to the next one
expect_equal( omit_attr( arxiv_count("submittedDate:[2013 TO 2014]") ), 92861)
expect_equal( omit_attr( arxiv_count("submittedDate:[1992 TO 1993]") ), 3190)

})

0 comments on commit 5ecc159

Please sign in to comment.