Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Luke Texon
simplewebapp
Commits
456d7e32
Commit
456d7e32
authored
Jan 17, 2020
by
Raghav Khanna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update file size tests
parent
f8db20ca
Pipeline
#114253
failed with stages
in 1 minute and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/test/java/ic/doc/FileGenerateTest.java
src/test/java/ic/doc/FileGenerateTest.java
+4
-2
No files found.
src/test/java/ic/doc/FileGenerateTest.java
View file @
456d7e32
...
...
@@ -32,11 +32,13 @@ public class FileGenerateTest {
@Test
public
void
fileSizePdf
()
throws
Exception
{
assertTrue
(
HtmlConverter
.
stringToPdfFile
(
"tony"
,
"test"
).
length
()
==
44102
);
long
fileSize
=
HtmlConverter
.
stringToPdfFile
(
"tony"
,
"test"
).
length
();
assertTrue
(
fileSize
>=
4000
&&
fileSize
<=
50000
);
}
@Test
public
void
fileSizeMd
()
throws
Exception
{
assertTrue
(
HtmlConverter
.
stringToMdFile
(
"konstantinos"
,
"test"
).
length
()
==
20
);
long
fileSize
=
HtmlConverter
.
stringToMdFile
(
"konstantinos"
,
"test"
).
length
();
assertTrue
(
fileSize
>=
10
&&
fileSize
<=
30
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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