Skip to content

Commit

Permalink
Added couple more tests for #1408 on checking levels.
Browse files Browse the repository at this point in the history
  • Loading branch information
arunsrinivasan committed Oct 27, 2015
1 parent 67069da commit 83ef9e1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion inst/tests/tests.Rraw
Original file line number Diff line number Diff line change
Expand Up @@ -7081,7 +7081,14 @@ X = fread("a|b|c|d
this|is|row|2
this|NA|NA|3
this|is|row|4", stringsAsFactors = TRUE)
test(201.1, is.na(X[3, b]), TRUE)
test(1577.1, is.na(X[3, b]), TRUE)
test(1577.2, levels(X$b), "is")
X = fread("a|b|c|d
this|NA|row|1
this|NA|row|2
this|NA|NA|3
this|NA|row|4", colClasses="character", stringsAsFactors = TRUE)
test(1577.3, levels(X$b), character(0))

##########################

Expand Down

0 comments on commit 83ef9e1

Please sign in to comment.