Need to create proper unit tests. This ticket requires a unit test framework [#16].
Additional unit tests (beyond baseline) should be created as separate tickets as/when needed.
Baseline Unit Tests
- /exchange (unknown exchange, generic type) note: need to test 'custom' type in separate unit test
- /response moniker format
- /response data format
- verbose
- /version
- /list exchanges
- /config file
Other baseline items to account for:
/date formatter (tests different 'types' of date formats)
- none: CRYPTOTRADE, CAVIRTEX, COINBASE, VIRCUREX, KRAKEN
- int (1395104814994129): MTGOX, BTCE, BITSTAMP,
- str (Thu, 10 Apr 2014 12:31:52 -0000): BITCOINAVERAGE, CAMPBX
bid/ask swaps
- bid/ask (normal): bitcoinaverage, cryptotrade, bitstamp, campbx, kraken
- buy/sell (swap):btce, mtgox
- none: cavirtex, coinbase, vircurex
test each crypto (btc, ltc, nme, etc.)
test each exchange?
Diff:
Diff:
Diff:
Diff:
moved ticket to new project