File: test_706_random_path.py

package info (click to toggle)
ezdxf 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 104,528 kB
  • sloc: python: 182,341; makefile: 116; lisp: 20; ansic: 4
file content (21 lines) | stat: -rw-r--r-- 462 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright (c) 2020, Manfred Moitzi
# License: MIT License

import pytest
from ezdxf.render import random_2d_path, random_3d_path


def test_random_2d_path():
    points = list(random_2d_path(steps=100))
    assert len(points) == 100
    assert len(set(points)) > 97


def test_random_3d_path():
    points = list(random_3d_path(steps=100))
    assert len(points) == 100
    assert len(set(points)) > 97


if __name__ == "__main__":
    pytest.main([__file__])