Skip to content

Commit

Permalink
more test variation
Browse files Browse the repository at this point in the history
  • Loading branch information
kota7 committed May 12, 2017
1 parent 0958d5a commit 0d5b639
Show file tree
Hide file tree
Showing 63 changed files with 367 additions and 51 deletions.
2 changes: 2 additions & 0 deletions R/parse-caption.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,14 @@ get_time_range <- function(x)
# resolve fuzziness in month names
if (is.matrix(caption_en_classifier$fuzzy)) {
for (i in 1:nrow(caption_en_classifier$fuzzy))
{
if (caption_en_classifier$fuzzy[i,1] == 'I') next
# this is to avoid confusion betwen I and l.
# luckily, we can skip I since I is not used as month name
mt <- gsub(caption_en_classifier$fuzzy[i,2],
caption_en_classifier$fuzzy[i,1],
mt)
}
}
mt <- match(mt, month.abb)
if (any(is.na(mt))) {
Expand Down
178 changes: 178 additions & 0 deletions tests/testthat/answers.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,182 @@
[
{
"file": "sample-25.png",
"time_range": [
"2014-03-10",
"2014-05-13"
],
"rank_range": [
"16k",
"10k"
]
},
{
"file": "sample-39.png",
"time_range": [
"2013-05-18",
"2014-05-13"
],
"rank_range": [
"26k",
"9k"
]
},
{
"file": "sample-28.png",
"time_range": [
"2013-04-08",
"2014-05-13"
],
"rank_range": [
"4k",
"2d"
]
},
{
"file": "sample-35.png",
"time_range": [
"2013-06-17",
"2014-05-13"
],
"rank_range": [
"9k",
"5k"
]
},
{
"file": "sample-34.png",
"time_range": [
"2013-08-31",
"2014-05-13"
],
"rank_range": [
"19k",
"11k"
]
},
{
"file": "sample-36.png",
"time_range": [
"2013-12-21",
"2014-05-13"
],
"rank_range": [
"2k",
"1d"
]
},
{
"file": "sample-31.png",
"time_range": [
"2013-06-02",
"2014-05-13"
],
"rank_range": [
"8k",
"2k"
]
},
{
"file": "sample-27.png",
"time_range": [
"2013-08-16",
"2014-05-13"
],
"rank_range": [
"30k",
"4k"
]
},
{
"file": "sample-40.png",
"time_range": [
"2013-11-06",
"2014-05-13"
],
"rank_range": [
"22k",
"11k"
]
},
{
"file": "sample-38.png",
"time_range": [
"2014-02-19",
"2014-05-13"
],
"rank_range": [
"7k",
"4k"
]
},
{
"file": "sample-37.png",
"time_range": [
"2014-01-06",
"2014-05-13"
],
"rank_range": [
"1d",
"4d"
]
},
{
"file": "sample-32.png",
"time_range": [
"2013-09-04",
"2014-05-13"
],
"rank_range": [
"4k",
"1k"
]
},
{
"file": "sample-26.png",
"time_range": [
"2013-06-04",
"2014-05-13"
],
"rank_range": [
"19k",
"2d"
]
},
{
"file": "sample-30.png",
"time_range": [
"2013-07-20",
"2014-05-13"
],
"rank_range": [
"4k",
"1d"
]
},
{
"file": "sample-33.png",
"time_range": [
"2013-10-09",
"2014-05-13"
],
"rank_range": [
"24k",
"9k"
]
},
{
"file": "sample-29.png",
"time_range": [
"2013-05-28",
"2014-05-13"
],
"rank_range": [
"3k",
"1d"
]
},


{
"time_range": [
"2016-11-24",
Expand Down
23 changes: 0 additions & 23 deletions tests/testthat/backend/1-move_files.py

This file was deleted.

12 changes: 0 additions & 12 deletions tests/testthat/backend/1/lst.txt

This file was deleted.

File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
12 changes: 0 additions & 12 deletions tests/testthat/backend/2/lst.txt

This file was deleted.

File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added tests/testthat/backend/3/sample-25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests/testthat/backend/3/sample-26.png
Binary file added tests/testthat/backend/3/sample-27.png
Binary file added tests/testthat/backend/3/sample-28.png
Binary file added tests/testthat/backend/3/sample-29.png
Binary file added tests/testthat/backend/3/sample-30.png
Binary file added tests/testthat/backend/3/sample-31.png
Binary file added tests/testthat/backend/3/sample-32.png
Binary file added tests/testthat/backend/3/sample-33.png
Binary file added tests/testthat/backend/3/sample-34.png
Binary file added tests/testthat/backend/3/sample-35.png
Binary file added tests/testthat/backend/3/sample-36.png
Binary file added tests/testthat/backend/3/sample-37.png
Binary file added tests/testthat/backend/3/sample-38.png
Binary file added tests/testthat/backend/3/sample-39.png
Binary file added tests/testthat/backend/3/sample-40.png
Loading

0 comments on commit 0d5b639

Please sign in to comment.