Closed koheiw closed 6 years ago
This test cannot pass on Travis because the order of the files is OS dependent.
https://github.com/quanteda/readtext/blob/b32818f5293ebfe9b6dac3b50d9ba97b23e8eaa9/tests/testthat/test-readtext.R#L637-L640
Linux
> Sys.glob("~/packages/readtext/tests/data/json/*json") [1] "/home/kohei/packages/readtext/tests/data/json/test2.json" "/home/kohei/packages/readtext/tests/data/json/test3.json" [3] "/home/kohei/packages/readtext/tests/data/json/test.json"
MacOS
> Sys.glob("./tests/data/json/*json") [1] "./tests/data/json/test.json" "./tests/data/json/test2.json" [3] "./tests/data/json/test3.json"
We need to sort the output of Sys.glob().
Sys.glob()
This test cannot pass on Travis because the order of the files is OS dependent.
https://github.com/quanteda/readtext/blob/b32818f5293ebfe9b6dac3b50d9ba97b23e8eaa9/tests/testthat/test-readtext.R#L637-L640
Linux
MacOS
We need to sort the output of
Sys.glob()
.