Skip to content

Commit 68cf7c4

Browse files
committed
Update tests
1 parent 1a7b5d1 commit 68cf7c4

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ os:
77
- linux
88
notifications:
99
email: false
10+
matrix:
11+
allow_failures:
12+
- julia: nightly
1013
after_success:
1114
- julia -e 'cd(Pkg.dir("LIBSVM")); Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'
1215
- julia -e 'cd(Pkg.dir("LIBSVM")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'

appveyor.yml

+7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ environment:
77
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe"
88
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe"
99

10+
matrix:
11+
allow_failures:
12+
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x86/0.5/julia-0.5-latest-win32.exe"
13+
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x86/0.6/julia-0.6-latest-win32.exe"
14+
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe"
15+
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe"
16+
1017
branches:
1118
only:
1219
- master

test/runtests.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,22 @@ y = Array(whiteside[:Temp])
2727

2828
m = svmtrain(X, y, svmtype = EpsilonSVR, cost = 10., gamma = 1.)
2929
yeps, d = svmpredict(m, X)
30-
@test_approx_eq(sum(yeps - y), 7.455509045783046)
30+
@test sum(yeps - y) 7.455509045783046
3131
skm = fit!(EpsilonSVR(cost = 10., gamma = 1.), X', y)
3232
ysk = predict(skm, X')
3333
@test yeps == ysk
3434

3535
nu1 = svmtrain(X, y, svmtype = NuSVR, cost = 10.,
3636
nu = .7, gamma = 2., tolerance = .001)
3737
ynu1, d = svmpredict(nu1, X)
38-
@test_approx_eq(sum(ynu1 - y), 14.184665717092)
38+
@test sum(ynu1 - y) 14.184665717092
3939
sknu1 = fit!(NuSVR(cost = 10., nu=.7, gamma = 2.), X', y)
4040
ysknu1 = predict(sknu1, X')
4141
@test ysknu1 == ynu1
4242

4343
nu2 = svmtrain(X, y, svmtype = NuSVR, cost = 10., nu = .9)
4444
ynu2, d =svmpredict(nu2, X)
45-
@test_approx_eq(sum(ynu2 - y), 6.686819661799177)
45+
@test sum(ynu2 - y) 6.686819661799177
4646
sknu2 = fit!(NuSVR(cost = 10., nu=.9), X', y)
4747
ysknu2 = predict(sknu2, X')
4848
@test ysknu2 == ynu2

0 commit comments

Comments
 (0)