Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pfitzseb committed Jul 21, 2018
1 parent 5b95018 commit e22d298
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 24 deletions.
19 changes: 1 addition & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ os:
- linux
- osx
julia:
- 0.6
- 0.7
- nightly
notifications:
email: false
Expand All @@ -16,20 +16,3 @@ git:
matrix:
allow_failures:
- julia: nightly

## uncomment and modify the following lines to manually install system packages
#addons:
# apt: # apt-get for linux
# packages:
# - gfortran
#before_script: # homebrew for mac
# - if [ $TRAVIS_OS_NAME = osx ]; then brew install gcc; fi

## uncomment the following lines to override the default test script
#script:
# - julia -e 'Pkg.clone(pwd()); Pkg.build("DocSeeker"); Pkg.test("DocSeeker"; coverage=true)'
after_success:
# push coverage results to Coveralls
- julia -e 'cd(Pkg.dir("DocSeeker")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
# push coverage results to Codecov
- julia -e 'cd(Pkg.dir("DocSeeker")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
8 changes: 2 additions & 6 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using DocSeeker
using Base.Test
using Test

import DocSeeker: dynamicsearch

Expand All @@ -15,7 +15,7 @@ end

@test firstN(dynamicsearch("sine"), ["sin", "sind", "asin"], 20)

@test firstN(dynamicsearch("regular expression"), ["match", "eachmatch", "search"], 20)
@test firstN(dynamicsearch("regular expression"), ["match", "eachmatch", "replace"], 20)

@test dynamicsearch("Real")[1][2].name == "Real"
@test length(dynamicsearch("Real")[1][2].text) > 0
Expand All @@ -32,8 +32,4 @@ end

@test dynamicsearch("regex")[1][2].name == "Regex"

DocSeeker._createdocsdb()
@test isfile(DocSeeker.dbpath)
@test !isempty(DocSeeker.loaddocsdb())

include("finddocs.jl")

0 comments on commit e22d298

Please sign in to comment.