Not Logged In
|
Login
|
Register
Home
|
News
|
Projects
|
Releases
Bugs
|
RFE
|
Repositories
|
Help
projects
/
xestiaab
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added test and code to check if an error occured whilst opening the input file.
[xestiaab/.git]
/
source
/
tests
/
xestiaab_convert.h
diff --git
a/source/tests/xestiaab_convert.h
b/source/tests/xestiaab_convert.h
index
2b185c0
..
7f3d3a7
100644
(file)
--- a/
source/tests/xestiaab_convert.h
+++ b/
source/tests/xestiaab_convert.h
@@
-59,6
+59,11
@@
TEST(ConvertCmdLine, ConvertTests){
ASSERT_EQ(CONVERTRESULT_INPUTFILEMISSING, ConvertContact(wxT("vCard3"),
wxT("vCard4"),
wxT("InvalidFile.vcf"),
ASSERT_EQ(CONVERTRESULT_INPUTFILEMISSING, ConvertContact(wxT("vCard3"),
wxT("vCard4"),
wxT("InvalidFile.vcf"),
- wxT("Temp-LoadCheck-Load1-v3Conv.vcf")));
+ wxT("Temp-LoadCheck-Load1-v3Conv.vcf")));
+
+ ASSERT_EQ(CONVERTRESULT_INPUTFILEERROR, ConvertContact(wxT("vCard3"),
+ wxT("vCard4"),
+ wxT("InvalidPermissions.vcf"),
+ wxT("Temp-LoadCheck-Load1-v3Conv.vcf")));
}
\ No newline at end of file
}
\ No newline at end of file
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software
Xestia Address Book
Xestia Calendar
Development
Xestia Gelforn
Everything else
About
News
Privacy Policy