diff --git a/test/edge_detect/edge_detector_test.rb b/test/edge_detect/edge_detector_test.rb index f3410b7..961028a 100644 --- a/test/edge_detect/edge_detector_test.rb +++ b/test/edge_detect/edge_detector_test.rb @@ -31,4 +31,17 @@ class EdgeDetectorTest < Minitest::Test sobel.detect_edges.save(output_sobel) end + def test_robot + input = File.expand_path('../../pictures/asics.png', __FILE__) + image = ChunkyPNG::Image.from_file(input) + + standard = EdgeDetector.new(image) + sobel = SobelEdgeDetector.new(image) + + output_standard = File.expand_path('../../output/asics_standard.png', __FILE__) + output_sobel = File.expand_path('../../output/asics_sobel.png', __FILE__) + + standard.detect_edges.save(output_standard) + sobel.detect_edges.save(output_sobel) + end end \ No newline at end of file diff --git a/test/output/asics_sobel.png b/test/output/asics_sobel.png new file mode 100644 index 0000000..6065c7f Binary files /dev/null and b/test/output/asics_sobel.png differ diff --git a/test/output/asics_standard.png b/test/output/asics_standard.png new file mode 100644 index 0000000..b7f14c0 Binary files /dev/null and b/test/output/asics_standard.png differ diff --git a/test/pictures/asics.png b/test/pictures/asics.png new file mode 100644 index 0000000..eb507dd Binary files /dev/null and b/test/pictures/asics.png differ