Skip to content

Commit ca7ddc7

Browse files
committed
julia compat v1.2
1 parent 8952e39 commit ca7ddc7

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ os:
44
- linux
55
- osx
66
julia:
7-
- 1.0
7+
- 1.2
8+
- 1.3
89
- nightly
910
matrix:
1011
allow_failures:

Project.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,10 @@ Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
99

1010
[compat]
1111
Reexport = "0.2"
12-
julia = "1"
12+
julia = "1.2"
13+
14+
[extras]
15+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
16+
17+
[targets]
18+
test = ["Test"]

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# ParallelUtilities.jl
2+
3+
[![Build Status](https://travis-ci.com/jishnub/ParallelUtilities.jl.svg?branch=master)](https://travis-ci.com/jishnub/ParallelUtilities.jl)
4+
25
Parallel mapreduce and other helpful functions for HPC, meant primarily for embarassingly parallel operations that often require one to split up a list of tasks into subsections that can be processed on individual cores.
36

47
# Installation

test/runtests.jl

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using ParallelUtilities,Test,Distributed
1+
using ParallelUtilities
2+
using Test
3+
using Distributed
24

35
addprocs(2)
46
@everywhere begin
@@ -85,7 +87,7 @@ end
8587

8688
iters = (1:1,)
8789
ps = ProductSplit(iters,2length(iters[1]),length(iters[1])+1) # must be empty
88-
@test isnothing(first(ps))
90+
@test first(ps) === nothing
8991
end
9092
@testset "last" begin
9193
for iters in [(1:10,),(1:10,4:6),(1:10,4:6,1:4),(1:2:10,4:1:6)],np=1:10
@@ -95,7 +97,7 @@ end
9597

9698
iters = (1:1,)
9799
ps = ProductSplit(iters,2length(iters[1]),length(iters[1])+1) # must be empty
98-
@test isnothing(last(ps))
100+
@test last(ps) === nothing
99101
end
100102
end
101103

@@ -107,8 +109,8 @@ end
107109
ps = ProductSplit(iters,np,p)
108110
pcol = collect(ps)
109111
for dim in 1:length(iters)
110-
@test begin
111-
res = fn(ps,dim) == fn(x->x[dim],pcol)
112+
@test begin
113+
res = fn(ps,dim) == fn(x[dim] for x in pcol)
112114
if !res
113115
println("ProductSplit(",iters,",",np,",",p,")")
114116
end
@@ -175,7 +177,7 @@ end
175177
iters = (1:10,4:6,1:4)
176178
ps = ProductSplit(iters,np,proc_id)
177179
@test whichproc(iters,first(ps),1) == 1
178-
@test isnothing(whichproc(iters,(100,100,100),1))
180+
@test whichproc(iters,(100,100,100),1) === nothing
179181
@test newprocrange(ps,1) == 1:1
180182

181183
for np_new in 1:np

0 commit comments

Comments
 (0)