Created
January 17, 2011 10:52
-
-
Save bakkdoor/782714 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
it: "should return an instance of the apropriate MatchData class" when: { | |
def create_tuple: num { | |
(num, num * num) # create a Tuple | |
} | |
match create_tuple: 10 -> { | |
case Tuple -> |md, x, y| | |
md class should == (Tuple MatchData) | |
x should == 10 | |
y should == 100 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment