Skip to content

Commit 219258a

Browse files
committed
Updated sub-test numbers for test '1578' to match the format established where 0s are prepended when there is more than one significant digit following the decimal.
1 parent 7da8059 commit 219258a

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

inst/tests/tests.Rraw

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8059,22 +8059,22 @@ test(1577.3, levels(X$b), character(0))
80598059

80608060
# FR #530, skip blank lines
80618061
input = "Header not 2 columns\n\n1,3\n2,4"
8062-
test(1578.1, fread(input), data.table(V1=1:2, V2=3:4))
8062+
test(1578.01, fread(input), data.table(V1=1:2, V2=3:4))
80638063
input = "a,b\n\n1,3\n2,4"
8064-
test(1578.2, fread(input), data.table(V1=1:2, V2=3:4)) # the block of 2x2 dominates the one line with sep in auto-removed header section
8065-
test(1578.3, fread(input, blank.lines.skip=TRUE), data.table( a=1:2, b=3:4))
8064+
test(1578.02, fread(input), data.table(V1=1:2, V2=3:4)) # the block of 2x2 dominates the one line with sep in auto-removed header section
8065+
test(1578.03, fread(input, blank.lines.skip=TRUE), data.table( a=1:2, b=3:4))
80668066
input = "a,b\n\n\n1,3\n2,4"
8067-
test(1578.4, fread(input, blank.lines.skip=TRUE), data.table( a=1:2, b=3:4))
8067+
test(1578.04, fread(input, blank.lines.skip=TRUE), data.table( a=1:2, b=3:4))
80688068
input = "a,b\n\n\n1,3\n\n2,4\n\n"
8069-
test(1578.5, fread(input, blank.lines.skip=TRUE), data.table( a=1:2, b=3:4))
8069+
test(1578.05, fread(input, blank.lines.skip=TRUE), data.table( a=1:2, b=3:4))
80708070

80718071
f = testDir("530_fread.txt")
8072-
test(1578.6, fread(f, skip=47L, verbose=TRUE), data.table(V1=1:2, V2=3:4), output="Positioned on line 48 starting: <<a,b>>")
8073-
test(1578.7, fread(f, skip=49L), data.table(V1=1:2, V2=3:4))
8074-
test(1578.8, fread(f, skip=47L, blank.lines.skip=TRUE), data.table(a=1:2, b=3:4))
8075-
test(1578.9, fread(f, skip=48L), data.table(V1=1:2, V2=3:4)) # start on blank line 49 and skip="auto" to first data row on line 50
8072+
test(1578.06, fread(f, skip=47L, verbose=TRUE), data.table(V1=1:2, V2=3:4), output="Positioned on line 48 starting: <<a,b>>")
8073+
test(1578.07, fread(f, skip=49L), data.table(V1=1:2, V2=3:4))
8074+
test(1578.08, fread(f, skip=47L, blank.lines.skip=TRUE), data.table(a=1:2, b=3:4))
8075+
test(1578.09, fread(f, skip=48L), data.table(V1=1:2, V2=3:4)) # start on blank line 49 and skip="auto" to first data row on line 50
80768076
input = "x y\n\n1 a\n\n2 b\n\n3 c"
8077-
test(1578.91, fread(input), data.table(V1=3L, V2="c"), warning="The rows in this file appear to be separated by blank lines. This resulted in most rows being skipped. If this was not the intended outcome, please consider setting 'blank.lines.skip' to TRUE.")
8077+
test(1578.10, fread(input), data.table(V1=3L, V2="c"), warning="The rows in this file appear to be separated by blank lines. This resulted in most rows being skipped. If this was not the intended outcome, please consider setting 'blank.lines.skip' to TRUE.")
80788078

80798079
# test 1579 moved to optimize.Rraw
80808080

0 commit comments

Comments
 (0)