Created
December 18, 2013 10:18
-
-
Save pellekrogholt/8020105 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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