diff --git a/DESCRIPTION b/DESCRIPTION index 20bb143..2127684 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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"), diff --git a/tests/testthat/test-date_range.R b/tests/testthat/test-date_range.R index 0ca1a91..600eecb 100644 --- a/tests/testthat/test-date_range.R +++ b/tests/testthat/test-date_range.R @@ -1,4 +1,3 @@ - context("search range of dates") test_that("search date ranges is quirky", { @@ -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) })