Created
November 3, 2012 13:22
-
-
Save jaycfields/4007372 to your computer and use it in GitHub Desktop.
what's the what's the scenario
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
(ns blog-expectations | |
(:use expectations.scenarios)) | |
(scenario | |
;;; real tests will call domain code, | |
;;; I avoid that here for simplicity | |
(let [x [1 2] | |
y (map-indexed vector x)] | |
(expect vector? x) | |
(expect [0 1] (first y)) | |
(expect java.util.List y))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment