Skip to content

Instantly share code, notes, and snippets.

@pellekrogholt
Created December 18, 2013 10:18
Show Gist options
  • Save pellekrogholt/8020105 to your computer and use it in GitHub Desktop.
Save pellekrogholt/8020105 to your computer and use it in GitHub Desktop.
test("proper inserts and lookups and remove") {
val topNode = system.actorOf(Props[BinaryTreeSet])
topNode ! Contains(testActor, id = 1, 1)
expectMsg(ContainsResult(1, false))
topNode ! Insert(testActor, id = 2, 1)
expectMsg(OperationFinished(2))
topNode ! Remove(testActor, id = 4, 1)
expectMsg(OperationFinished(4))
topNode ! Contains(testActor, id = 5, 1)
expectMsg(ContainsResult(5, false))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment