From 17a39da70ee33d202076348fa8999ca4f0fd8566 Mon Sep 17 00:00:00 2001 From: Pedro Date: Wed, 2 Sep 2020 17:59:48 -0300 Subject: [PATCH 1/2] Added tests for Range --- test/others.jl | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/others.jl diff --git a/test/others.jl b/test/others.jl new file mode 100644 index 0000000..e9bef69 --- /dev/null +++ b/test/others.jl @@ -0,0 +1,17 @@ +@testset "Others" begin + @testset "Range" begin + elements = 10 + range_size = 5 + + df = DataFrame(x = [1:elements ...], y = [1:elements ...]) + conn = TablesConnector(df) + stream = BatchStream(conn) + + counter = 0 + for sample in Range(range_size, df) + counter += 1 + end + + @test counter == range_size + end +end \ No newline at end of file From 4f72daa997e3e7bd97ebe6209143b411c99f812a Mon Sep 17 00:00:00 2001 From: Pedro Date: Wed, 2 Sep 2020 18:43:58 -0300 Subject: [PATCH 2/2] Included others.jl in runtests.jl --- test/runtests.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index c6c8fa1..db24ac9 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -3,4 +3,5 @@ using DataFrames using Test include("connector.jl") -include("stream.jl") \ No newline at end of file +include("stream.jl") +include("others.jl") \ No newline at end of file