Created
March 22, 2012 05:32
-
-
Save Centaur/2156401 to your computer and use it in GitHub Desktop.
scala dsl demo
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
class ShhConsumeTest extends Logging with FunSuite{ | |
val pos = new ShhVirtualPos("192.168.1.14", 5960, "206290010320001", "20000005") | |
var card = Card("9444443228739457375", "954000") | |
test("send") { | |
assert(pos.签到.result === OK) | |
val 消费交易 = card 在 pos 消费 Money(9.63) | |
assert(消费交易.result === OK) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment