Skip to content

Commit

Permalink
test: allow some numerical inaccuracy
Browse files Browse the repository at this point in the history
  • Loading branch information
asmfstatoil committed Feb 27, 2024
1 parent 7e24100 commit 28079c6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package neqsim.thermodynamicOperations.flashOps.saturationOps;

import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import neqsim.thermo.system.SystemInterface;
import neqsim.thermo.system.SystemSrkCPAstatoil;
Expand Down Expand Up @@ -36,13 +37,13 @@ void testRun() {
* testSystem.getPhase(0).getComponent("MEG").getMolarMass()
+ testSystem.getPhase(0).getComponent("water").getNumberOfmoles()
* testSystem.getPhase(0).getComponent("water").getMolarMass());
assertEquals(98.54736778391424, cons);
Assertions.assertEquals(98.54736778391424, cons, 1e-12);
} catch (Exception ex) {
ex.toString();
}
// testSystem.display();

assertEquals(0.019690143220139962,
testSystem.getPhase(0).getComponent("MEG").getNumberOfmoles());
testSystem.getPhase(0).getComponent("MEG").getNumberOfmoles(), 1e-12);
}
}

0 comments on commit 28079c6

Please sign in to comment.