Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KPkPass
Commits
a5b54471
Commit
a5b54471
authored
Mar 06, 2018
by
Volker Krause
Browse files
Add unit test for pass updates
parent
a78b3da4
Changes
3
Hide whitespace changes
Inline
Side-by-side
autotests/data/boardingpass.pkpass
→
autotests/data/boardingpass
-v1
.pkpass
View file @
a5b54471
No preview for this file type
autotests/data/boardingpass-v2.pkpass
0 → 100644
View file @
a5b54471
File added
autotests/pkpasstest.cpp
View file @
a5b54471
...
...
@@ -32,7 +32,7 @@ private slots:
void
testBoardingPass
()
{
std
::
unique_ptr
<
KPkPass
::
Pass
>
pass
(
KPkPass
::
Pass
::
fromFile
(
QLatin1String
(
SOURCE_DIR
"/data/boardingpass.pkpass"
)));
std
::
unique_ptr
<
KPkPass
::
Pass
>
pass
(
KPkPass
::
Pass
::
fromFile
(
QLatin1String
(
SOURCE_DIR
"/data/boardingpass
-v1
.pkpass"
)));
QVERIFY
(
pass
);
QCOMPARE
(
pass
->
type
(),
KPkPass
::
Pass
::
BoardingPass
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment