                    :memo "Sell 100 shares of AAPL at 8.500"
                    :balance 150M
                    :index 0}]]
-    (if-not (= expected gains-items)
+    (when-not (= expected gains-items)
       (pprint {:expected expected
                :actual gains-items
                :diff (diff expected gains-items)}))

                                                       :balance)]
    (is (:transaction result)
        "The result contains the transaction associated with the purchase")
    (is (= expected-transaction actual-transaction)
        "The resulting transaction has the correct attributes")
    (is (empty? (-> result :transaction validation/error-messages))

                                         (assoc :shares 25M
                                                :value 375M
                                                :trade-date (t/local-date 2017 3 1))))
        gains-items (items-by-account (:id st-capital-gains))
        expected [{:transaction-date (t/local-date 2017 3 1)
                   :description "Sell 25 shares of AAPL at 15.000"
                   :action :credit
