From f5873bcad0200f76a4d2bfcd451611ead024c8e1 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Thu, 2 Jul 2015 16:03:41 -0700 Subject: [PATCH] Add unfunded account Env test --- src/ripple/test/jtx/impl/Env_test.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/ripple/test/jtx/impl/Env_test.cpp b/src/ripple/test/jtx/impl/Env_test.cpp index a454ef124..fa254fed0 100644 --- a/src/ripple/test/jtx/impl/Env_test.cpp +++ b/src/ripple/test/jtx/impl/Env_test.cpp @@ -148,6 +148,12 @@ public: auto const USD = gw["USD"]; auto const alice = Account("alice"); + // unfunded + { + Env env(*this); + env(pay("alice", "bob", XRP(1000)), seq(1), fee(10), sig("alice"), ter(terNO_ACCOUNT)); + } + // fund { Env env(*this); @@ -452,17 +458,13 @@ public: using namespace jtx; Env env(*this); env.fund(XRP(100000), "alice"); - env.memoize("alice"); - auto jt1 = env.jt(noop("alice")); expect(!jt1.get()); - auto jt2 = env.jt(noop("alice"), prop(-1)); expect(jt2.get()); expect(*jt2.get() == 65535); - auto jt3 = env.jt(noop("alice"), prop( "Hello, world!"),