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
8923370e
Commit
8923370e
authored
Nov 05, 2021
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复实体关系
parent
b7c81961
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
TestFormulaHelper.java
yzg-util-base/src/test/java/helper/TestFormulaHelper.java
+12
-1
No files found.
yzg-util-base/src/test/java/helper/TestFormulaHelper.java
View file @
8923370e
...
@@ -26,9 +26,20 @@ public class TestFormulaHelper {
...
@@ -26,9 +26,20 @@ public class TestFormulaHelper {
@Test
@Test
public
void
testMul
()
{
public
void
testMul
()
{
//
System.out.println(FormulaHelper.calc("(100-0)-2"));
System
.
out
.
println
(
FormulaHelper
.
calc
(
"(100-0)-2"
));
System
.
out
.
println
(
FormulaHelper
.
calc
(
"100-0-2"
));
System
.
out
.
println
(
FormulaHelper
.
calc
(
"100-0-2"
));
System
.
out
.
println
(
FormulaHelper
.
calc
(
"100*2/3+2*5"
));
System
.
out
.
println
(
FormulaHelper
.
calc
(
"100*2/3+2*5"
));
System
.
out
.
println
(
FormulaHelper
.
calc
(
"8+3*4"
));
System
.
out
.
println
(
FormulaHelper
.
calc
(
"(8+4)*3"
));
System
.
out
.
println
(
FormulaHelper
.
calc
(
" 8-6/3"
));
System
.
out
.
println
(
FormulaHelper
.
calc
(
"(8-5)/3"
));
System
.
out
.
println
(
FormulaHelper
.
calc
(
"(1-2)*(3-4)"
));
System
.
out
.
println
(
FormulaHelper
.
calc
(
"1+(2+3)/(1+4)"
));
System
.
out
.
println
(
FormulaHelper
.
calc
(
"1+(2-5)/(2+4)"
));
// System.out.println(FormulaHelper.calc(""));
}
}
...
...
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