Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
akash-akya committed Jan 3, 2025
1 parent 8be9f4d commit e19a3b3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/vix/foreign_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ defmodule Vix.Vips.ForeignTest do
assert {:ok, "VipsForeignSaveJpegFile"} = Foreign.find_save("puppies.jpg")
end

test "find_load_source" do
bin = File.read!(img_path("puppies.jpg"))
# test "find_load_source" do
# bin = File.read!(img_path("puppies.jpg"))

assert {pipe, source} = Vix.SourcePipe.new()
assert :ok = Vix.SourcePipe.write(pipe, bin)
assert :ok = Vix.SourcePipe.stop(pipe)
# assert {pipe, source} = Vix.SourcePipe.new()
# assert :ok = Vix.SourcePipe.write(pipe, bin)
# assert :ok = Vix.SourcePipe.stop(pipe)

assert {:ok, "VipsForeignLoadJpegSource"} = Foreign.find_load_source(source)
end
# assert {:ok, "VipsForeignLoadJpegSource"} = Foreign.find_load_source(source)
# end

test "find_save_target" do
assert {:ok, "VipsForeignSaveJpegTarget"} = Foreign.find_save_target(".jpg")
Expand Down

0 comments on commit e19a3b3

Please sign in to comment.