Skip to content

Commit

Permalink
added tests for ascii-like binary files to fix #80
Browse files Browse the repository at this point in the history
  • Loading branch information
wolph committed Jun 1, 2018
1 parent 012a589 commit c44207b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Binary file added tests/stl_binary/rear_case.stl
Binary file not shown.
9 changes: 9 additions & 0 deletions tests/test_binary.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from stl import mesh


def test_ascii_like_binary(tmpdir, speedups):
mesh.Mesh.from_file('tests/stl_binary/rear_case.stl', speedups=speedups)

with open('tests/stl_binary/rear_case.stl', 'rb') as fh:
mesh.Mesh.from_file('rear_case.stl', fh=fh, speedups=speedups)

0 comments on commit c44207b

Please sign in to comment.