File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
#include < init.h>
6
6
#include < qt/bitcoin.h>
7
+ #include < qt/guiutil.h>
7
8
#include < qt/test/optiontests.h>
8
9
#include < test/util/setup_common.h>
9
10
#include < util/system.h>
@@ -122,3 +123,12 @@ void OptionTests::parametersInteraction()
122
123
QVERIFY (!settings.contains (" fListen" ));
123
124
gArgs .ClearPathCache ();
124
125
}
126
+
127
+ void OptionTests::extractFilter ()
128
+ {
129
+ QString filter = QString (" Partially Signed Transaction (Binary) (*.psbt)" );
130
+ QCOMPARE (GUIUtil::ExtractFirstSuffixFromFilter (filter), " psbt" );
131
+
132
+ filter = QString (" Image (*.png *.jpg)" );
133
+ QCOMPARE (GUIUtil::ExtractFirstSuffixFromFilter (filter), " png" );
134
+ }
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ private Q_SLOTS:
22
22
void migrateSettings ();
23
23
void integerGetArgBug ();
24
24
void parametersInteraction ();
25
+ void extractFilter ();
25
26
26
27
private:
27
28
interfaces::Node& m_node;
You can’t perform that action at this time.
0 commit comments