Skip to content

Commit 28079c6

Browse files
committed
test: allow some numerical inaccuracy
1 parent 7e24100 commit 28079c6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/java/neqsim/thermodynamicOperations/flashOps/saturationOps/HydrateInhibitorwtFlashTest.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package neqsim.thermodynamicOperations.flashOps.saturationOps;
22

33
import static org.junit.jupiter.api.Assertions.assertEquals;
4+
import org.junit.jupiter.api.Assertions;
45
import org.junit.jupiter.api.Test;
56
import neqsim.thermo.system.SystemInterface;
67
import neqsim.thermo.system.SystemSrkCPAstatoil;
@@ -36,13 +37,13 @@ void testRun() {
3637
* testSystem.getPhase(0).getComponent("MEG").getMolarMass()
3738
+ testSystem.getPhase(0).getComponent("water").getNumberOfmoles()
3839
* testSystem.getPhase(0).getComponent("water").getMolarMass());
39-
assertEquals(98.54736778391424, cons);
40+
Assertions.assertEquals(98.54736778391424, cons, 1e-12);
4041
} catch (Exception ex) {
4142
ex.toString();
4243
}
4344
// testSystem.display();
4445

4546
assertEquals(0.019690143220139962,
46-
testSystem.getPhase(0).getComponent("MEG").getNumberOfmoles());
47+
testSystem.getPhase(0).getComponent("MEG").getNumberOfmoles(), 1e-12);
4748
}
4849
}

0 commit comments

Comments
 (0)