heisencoin 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/tests/arbitrage.rb +6 -10
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 299b73b5c1ca03c9f2e4a344a07c577518204030
4
- data.tar.gz: e34f66875a7de255c5c8dcc9eab8fbf12c2dab5e
3
+ metadata.gz: 9d347b61ce04c1fa4dd297c1618999cbefa8087d
4
+ data.tar.gz: b930a4a9eb4c8f67a45a417384770e0108fc708e
5
5
  SHA512:
6
- metadata.gz: e5c8145003e9d9f53a2ac2cb7cbe026cfd3608b40c8ede2de9bce9f742d12971bfb46f5c890f00484f14edf63c84739ee7d387c880955da975ec2c0c2f46ece3
7
- data.tar.gz: ec851b165c22da8b0f6fed05d45004bfde9f312b9a0f3b1a71bb58e134e7bdb3fe0236123b62e7e6fec32c0579435a055620bc78264f15f0cef47f35f665125b
6
+ metadata.gz: 4bc127d3bfb2b3b1a7be6a5009d369e6a6abe04b088c9e6c844023ff18b9df2fe8fd9109940c0c9e9aa326cf429de0f38cf00bb1f8c71f2aae5f01cd9162b99a
7
+ data.tar.gz: 5c0755679008fe176fc1a61285427471b72ce1b8ce632c135939c6e22d79d96b60dcd8c918d3ca9e16e30d5333dd1a2cfc2136050d2856e102ac222139738080
data/tests/arbitrage.rb CHANGED
@@ -98,20 +98,16 @@ class TestMeme < Minitest::Test
98
98
 
99
99
  it "should make all available trades" do
100
100
  trades = @arby.trade_all(@arby.profitable_asks, @arby.profitable_bids)
101
- trades.must_equal [ [@ex1, 14.2, @ex2, 13.4, 0.5],
102
- [@ex1, 14.2, @ex2, 13.5, 0.7],
103
- [@ex1, 14.1, @ex2, 13.5, 0.20000000000000007],
104
- [@ex1, 14.1, @ex2, 14, 0.9]]
101
+ trades.must_equal [ Trade.new(@ex2, @ex1, 0.5),
102
+ Trade.new(@ex2, @ex1, 0.7),
103
+ Trade.new(@ex2, @ex1, 0.20000000000000007),
104
+ Trade.new(@ex2, @ex1, 0.9)]
105
105
  end
106
106
 
107
107
  it "should work" do
108
108
  # buy 13.5 x0.9 from ex2, sell to ex1 (up to x1.1)
109
- #plan = @arby.plan
110
- #plan.steps.size.must_equal 1
111
- #step1 = plan.steps.first
112
- #step1.from.must_equal @ex2
113
- #step1.to.must_equal @ex1
114
- #step1.amount.must_equal 0.9
109
+ plan = @arby.plan
110
+ plan.steps.size.must_equal 4
115
111
  end
116
112
  end
117
113
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heisencoin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Don Park