Skip to content

Instantly share code, notes, and snippets.

@zeryx
Created February 3, 2016 18:37
Show Gist options
  • Save zeryx/68a151fd6036e415b721 to your computer and use it in GitHub Desktop.
Save zeryx/68a151fd6036e415b721 to your computer and use it in GitHub Desktop.
/**
* Created by james on 27/01/16.
*/
import algorithmia.VideoSplits._
import org.scalatest._
//TODO: figure out how to return a data:// string instead of a https://api.algorithmia.com/v1 string
class splitSpec extends FunSuite with Matchers{
test("should split video file into segment"){
val runManager = new VideoSplits
val input = SplitVideo("data://zeryx/videoSplit/drop.avi", "00:00:01.000", "00:00:02.250", None)
val responseVid: String = runManager(input)
responseVid.contains("data://.my/out/drop.avi") shouldBe true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment