Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
YZG
yzg-util
Commits
02ea3059
Commit
02ea3059
authored
Aug 17, 2022
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
升级新版本
parent
95d7f2f4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
TestCalc.java
yzg-util-base/src/test/java/helper/TestCalc.java
+21
-0
No files found.
yzg-util-base/src/test/java/helper/TestCalc.java
0 → 100644
View file @
02ea3059
package
helper
;
import
com.yanzuoguang.util.helper.CalcHelper
;
import
com.yanzuoguang.util.helper.RsaHelper
;
import
org.junit.Assert
;
import
org.junit.Test
;
public
class
TestCalc
{
@Test
public
void
test
()
throws
Exception
{
double
d1
=
0.1
;
double
d2
=
0.2
;
double
d3
=
CalcHelper
.
add
(
d1
,
d2
);
Assert
.
assertTrue
(
CalcHelper
.
equals
(
d3
,
0.3
));
double
d4
=
d1
+
d2
;
Assert
.
assertFalse
(
CalcHelper
.
equals
(
d4
,
0.3
));
}
}
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