Skip to content

Commit

Permalink
fix all god damn fucking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Datseris committed Jan 10, 2018
1 parent 6b2d18b commit 71b3910
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/dataset.jl
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ dataset.
function minima(data::AbstractDataset{D, T}) where {D, T<:Real}
m = Vector(data[1])
for point in data
for i in 2:D
for i in 1:D
if point[i] < m[i]
m[i] = point[i]
end
Expand All @@ -238,7 +238,7 @@ dataset.
function maxima(data::AbstractDataset{D, T}) where {D, T<:Real}
m = Vector(data[1])
for point in data
for i in 2:D
for i in 1:D
if point[i] > m[i]
m[i] = point[i]
end
Expand Down
4 changes: 2 additions & 2 deletions test/dataset_tests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cd()
println("\nTesting Dataset IO (file at $(pwd()))...")
println("\nTesting Dataset (file at $(pwd()))...")
if current_module() != DynamicalSystemsBase
using DynamicalSystemsBase
end
Expand Down Expand Up @@ -64,7 +64,7 @@ using Base.Test, StaticArrays
@test dimension(data3) == 3
@test data3 == data

data2 = read_dataset("test.txt", Dataset{2, Float64})
data2 = read_dataset("test.txt", Dataset{2, Float64}, ',')
@test dimension(data2) == 2

rm("test.txt")
Expand Down
2 changes: 1 addition & 1 deletion test/discrete_systems.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
println("\nTesting continuous system evolution...")
println("\nTesting discrete system evolution...")
if current_module() != DynamicalSystemsBase
using DynamicalSystemsBase
end
Expand Down

0 comments on commit 71b3910

Please sign in to comment.