Skip to content

Instantly share code, notes, and snippets.

@bakkdoor
Created January 17, 2011 10:52
Show Gist options
  • Save bakkdoor/782714 to your computer and use it in GitHub Desktop.
Save bakkdoor/782714 to your computer and use it in GitHub Desktop.
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