Skip to content

Commit

Permalink
Adds test for FilePaths with DataFrame
Browse files Browse the repository at this point in the history
  • Loading branch information
morris25 committed Oct 15, 2019
1 parent 6665922 commit ef5b140
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
35 changes: 35 additions & 0 deletions Manifest.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
[[Base64]]
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"

[[CSTParser]]
deps = ["Tokenize"]
git-tree-sha1 = "c69698c3d4a7255bc1b4bc2afc09f59db910243b"
uuid = "00ebfdb7-1f24-5e51-bd34-a7502290713f"
version = "0.6.2"

[[CategoricalArrays]]
deps = ["Compat", "DataAPI", "Future", "JSON", "Missings", "Printf", "Reexport", "Unicode"]
git-tree-sha1 = "45101c4d0df3946acb6e9bfcfd3a8c32abbd421b"
Expand Down Expand Up @@ -53,6 +59,12 @@ git-tree-sha1 = "2ee1d999c462425e2f848524f732ed51bc1ab63a"
uuid = "48062228-2e41-5def-b9a4-89aafe57970f"
version = "0.6.2"

[[FillArrays]]
deps = ["LinearAlgebra", "Random", "SparseArrays"]
git-tree-sha1 = "16974065d5bfa867446d3228bc63f05a440e910b"
uuid = "1a297f60-69ca-5386-bcde-b61e274b549b"
version = "0.7.2"

[[Future]]
deps = ["Random"]
uuid = "9fa8497b-333b-5362-9e8d-4d0656e87820"
Expand All @@ -78,6 +90,12 @@ git-tree-sha1 = "b34d7cef7b337321e97d22242c3c2b91f476748e"
uuid = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
version = "0.21.0"

[[LazyArrays]]
deps = ["FillArrays", "LinearAlgebra", "MacroTools", "StaticArrays"]
git-tree-sha1 = "576081d32ef488a03a8cebcc63fdb23d52b466e5"
uuid = "5078a376-72f3-5289-bfd5-ec5146d43c02"
version = "0.12.2"

[[LibGit2]]
uuid = "76f85450-5226-5b5a-8eaa-529ad045b433"

Expand All @@ -91,6 +109,12 @@ uuid = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
[[Logging]]
uuid = "56ddb016-857b-54e1-b83d-db4d58db5568"

[[MacroTools]]
deps = ["CSTParser", "Compat", "DataStructures", "Test", "Tokenize"]
git-tree-sha1 = "d6e9dedb8c92c3465575442da456aec15a89ff76"
uuid = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
version = "0.5.1"

[[Markdown]]
deps = ["Base64"]
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"
Expand Down Expand Up @@ -170,6 +194,12 @@ version = "0.3.1"
deps = ["LinearAlgebra", "Random"]
uuid = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"

[[StaticArrays]]
deps = ["LinearAlgebra", "Random", "Statistics"]
git-tree-sha1 = "db23bbf50064c582b6f2b9b043c8e7e98ea8c0c6"
uuid = "90137ffa-7385-5640-81b9-e52037218182"
version = "0.11.0"

[[Statistics]]
deps = ["LinearAlgebra", "SparseArrays"]
uuid = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
Expand All @@ -190,6 +220,11 @@ version = "0.2.11"
deps = ["Distributed", "InteractiveUtils", "Logging", "Random"]
uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[[Tokenize]]
git-tree-sha1 = "dfcdbbfb2d0370716c815cbd6f8a364efb6f42cf"
uuid = "0796e94c-ce3b-5d07-9a54-7f471281c624"
version = "0.5.6"

[[UUIDs]]
deps = ["Random"]
uuid = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
Expand Down
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ version = "0.5.13"
CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597"
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
LazyArrays = "5078a376-72f3-5289-bfd5-ec5146d43c02"
FilePathsBase = "48062228-2e41-5def-b9a4-89aafe57970f"
LazyArrays = "5078a376-72f3-5289-bfd5-ec5146d43c02"
Mmap = "a63ad114-7e13-5084-954f-fe012c677804"
Parsers = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0"
PooledArrays = "2dfb63ee-cc39-5dd5-95bd-886bf059d720"
Expand All @@ -20,11 +20,11 @@ WeakRefStrings = "ea10d353-3f73-51f8-a26c-33c1cb351aa5"
[compat]
CategoricalArrays = "0.5,0.6,0.7"
DataFrames = "0.18,0.19,0.20"
LazyArrays = "0.12"
Parsers = "0.3"
PooledArrays = "0.5"
Tables = "0.1,0.2"
WeakRefStrings = "0.5,0.6"
LazyArrays = "0.12"
julia = "1"

[extras]
Expand Down
5 changes: 5 additions & 0 deletions test/write.jl
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,9 @@ using CSV, Dates, WeakRefStrings, CategoricalArrays, Tables
end

@test read(rd, String) == "col1,col2,col3\n1,4,7\n2,5,8\n3,6,9\n"

mktmpdir() do tmp
CSV.write(tmp / "test.txt", df)
@test CSV.read(tmp / "test.txt") == df
end
end

0 comments on commit ef5b140

Please sign in to comment.