Skip to content

Commit

Permalink
added test
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Zheng committed Feb 10, 2018
1 parent 2b72ed3 commit 2741d6f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ language: c
script: lein test
os:
- osx
osx_image:
- xcode9.3beta
osx_image:
- xcode9.2
before_script:
- brew install leiningen
Expand Down
8 changes: 8 additions & 0 deletions test/clojure/image_bench/sobel_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@
(gray/grayscale img)
=> java.awt.image.BufferedImage)

;; PASSES
(fact "running a grayscale kernel at [1000 1000] [4 4]"

(def img (img/load-image "resources/lena-1000x1000.jpg"))

(gray/grayscale img [4 4])
=> java.awt.image.BufferedImage)


;; FAILS
(fact "running a grayscale kernel at [345, 912] [15, 3]"
Expand Down

0 comments on commit 2741d6f

Please sign in to comment.