From b6b3548c0c1e8b965cfbd7a69ec8d9b9a757bcdb Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Tue, 7 Jul 2015 10:12:47 -0700 Subject: [PATCH] Remove redundant unit test --- Builds/VisualStudio2013/RippleD.vcxproj | 8 ---- .../VisualStudio2013/RippleD.vcxproj.filters | 6 --- src/ripple/app/tx/tests/Regression_test.cpp | 47 ------------------- src/ripple/unity/app_tx.cpp | 1 - 4 files changed, 62 deletions(-) delete mode 100644 src/ripple/app/tx/tests/Regression_test.cpp diff --git a/Builds/VisualStudio2013/RippleD.vcxproj b/Builds/VisualStudio2013/RippleD.vcxproj index 672bdcc29..58109b3a9 100644 --- a/Builds/VisualStudio2013/RippleD.vcxproj +++ b/Builds/VisualStudio2013/RippleD.vcxproj @@ -1839,10 +1839,6 @@ True True - - True - True - True True @@ -1881,10 +1877,6 @@ - - True - True - True True diff --git a/Builds/VisualStudio2013/RippleD.vcxproj.filters b/Builds/VisualStudio2013/RippleD.vcxproj.filters index 0bc685e6a..1d7b87c94 100644 --- a/Builds/VisualStudio2013/RippleD.vcxproj.filters +++ b/Builds/VisualStudio2013/RippleD.vcxproj.filters @@ -2571,9 +2571,6 @@ ripple\app\tx\impl - - ripple\app\tx\impl - ripple\app\tx\impl @@ -2610,9 +2607,6 @@ ripple\app\tx\tests - - ripple\app\tx\tests - ripple\app\tx\tests diff --git a/src/ripple/app/tx/tests/Regression_test.cpp b/src/ripple/app/tx/tests/Regression_test.cpp deleted file mode 100644 index 6764b4943..000000000 --- a/src/ripple/app/tx/tests/Regression_test.cpp +++ /dev/null @@ -1,47 +0,0 @@ -//------------------------------------------------------------------------------ -/* - This file is part of rippled: https://github.com/ripple/rippled - Copyright (c) 2012, 2013 Ripple Labs Inc. - Permission to use, copy, modify, and/or distribute this software for any - purpose with or without fee is hereby granted, provided that the above - copyright notice and this permission notice appear in all copies. - THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -*/ -//============================================================================== - -#include -#include - -namespace ripple { -namespace test { - -struct Regression_test : public beast::unit_test::suite -{ - // SigningPubKey: 0000000000000000000000000000000000 (34 zeroes) - void testBadSigningPubKey() - { - using namespace jtx; - Env env(*this); - env.fund(XRP(10000), "alice"); - env(noop("alice"), sig(none), json( R"raw( { - "SigningPubKey" : "0000000000000000000000000000000000", - "TxnSignature" : "3044022042D144D130A1651CBE5632196FE4E745A75445AA8DB95AC9905701DC891F9A30022012DF180ED1545B560681D475F570D9603BF663BD4C91F591DBA0A8C43876C563" - } )raw"), ter(temINVALID)); - } - - void run() override - { - testBadSigningPubKey(); - } -}; - -BEAST_DEFINE_TESTSUITE(Regression,app,ripple); - -} // test -} // ripple diff --git a/src/ripple/unity/app_tx.cpp b/src/ripple/unity/app_tx.cpp index aa1a94792..02195db84 100644 --- a/src/ripple/unity/app_tx.cpp +++ b/src/ripple/unity/app_tx.cpp @@ -47,5 +47,4 @@ #include #include #include -#include #include