Last active
August 29, 2015 13:56
-
-
Save amolpujari/8851842 to your computer and use it in GitHub Desktop.
dummy transactions
This file contains 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
require 'spec_helper' | |
describe "Transaction" do | |
it "should handle dummy numerals" do | |
transaction_input(%{ | |
x1 is I | |
x5 is V | |
x10 is X | |
x50 is L | |
x100 is C | |
x500 is D | |
x1000 is M | |
how much is x1000 x100 ? | |
how much is x1 x1 ? | |
how much is x1 x5 ? | |
} | |
).should_output(%{ | |
x1000 x100 is 1100 | |
x1 x1 is 2 | |
x1 x5 is 4 | |
}) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment