Commit 0e12d76
committed
tests: added data file and test coverage to demonstrate encodings
The library uses fs.createReadStream to read files when fromFile
is called and passes through options, including encoding, to the
fs call. This is not obvious, resulting in issue #402. I have added
a test to demonstrate this capability and a data file encoded in
latin1 for use in the test.
Issue #4021 parent 4fcda10 commit 0e12d76
2 files changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
82 | 92 | | |
83 | 93 | | |
84 | 94 | | |
| |||
0 commit comments