Skip to content

Commit 5e73a04

Browse files
committed
[ci] fix macos test error, add command for unit-test
1 parent 414fbe8 commit 5e73a04

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,17 @@ including Windows, Linux, and macOS.
7777
5. You can install the locally built package using:
7878
`python3 -m pip install --force-reinstall iso2mesh-*.whl`
7979

80+
### Run built-in unit-tests
81+
82+
If you want to modify the source, and verify that it still produces correct results, you can run
83+
the built-in unit-test script inside the downloaded git repository by using this command
84+
inside the `pyiso2mesh` root folder
85+
86+
```bash
87+
python -m unittest test.run_test
88+
```
89+
90+
8091
## How to Use
8192

8293
`pyiso2mesh` inherits the "trademark" **one-liner mesh generator** style from its MATLAB/Octave counterpart

test/run_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ def test_cgalv2m(self):
699699
"cgalmesh",
700700
)
701701
self.assertEqual(removedupelem(fc[:, :3]).shape[0], 0)
702-
self.assertAlmostEqual(sum(elemvolume(no[:, :3], el[:, :4])), 0.7455, 4)
702+
self.assertAlmostEqual(sum(elemvolume(no[:, :3], el[:, :4])), 0.7455, 3)
703703

704704

705705
if __name__ == "__main__":

0 commit comments

Comments
 (0)