diff --git a/Project.toml b/Project.toml index 9f94ee3..6b2f6d2 100644 --- a/Project.toml +++ b/Project.toml @@ -11,6 +11,7 @@ Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" TestItemRunner = "f8b46487-2199-4994-9208-9a1283c18c0a" DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" +Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" [deps] DataValues = "e7dc6d0d-1eca-5fa6-8ad6-5aecde8b7ea5" @@ -20,7 +21,7 @@ IterableTables = "1c8ee90f-4401-5389-894e-7a04a3dc0f4d" Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" [targets] -test = ["Statistics", "Test", "DataFrames", "TypedTables", "Documenter", "IndexedTables", "Dates", "TestItemRunner"] +test = ["Statistics", "Test", "DataFrames", "TypedTables", "Documenter", "IndexedTables", "Dates", "TestItemRunner", "Random"] [compat] julia = "1.10" diff --git a/test/test_standalone.jl b/test/test_standalone.jl index cd2ccda..ef0506c 100644 --- a/test/test_standalone.jl +++ b/test/test_standalone.jl @@ -138,7 +138,10 @@ end @test result7 == result end -@testset "@pivot_wider operator" begin +@testitem "@pivot_wider operator" begin + using DataFrames + using DataValues + long = DataFrame( year = [2017, 2017, 2018, 2018], country = [:US, :EU, :US, :EU],