diff options
| author | J08nY | 2023-10-16 14:15:35 +0200 |
|---|---|---|
| committer | J08nY | 2023-10-16 14:15:35 +0200 |
| commit | e50b0519ce783aba78a074883c24f2874fe3262b (patch) | |
| tree | 68ff72dcba4be4d95a389d6920ba20f04afad3fe /test/sca | |
| parent | 0d57f59a3f434745de9494d34c00c7d22fe93ab2 (diff) | |
| download | pyecsca-e50b0519ce783aba78a074883c24f2874fe3262b.tar.gz pyecsca-e50b0519ce783aba78a074883c24f2874fe3262b.tar.zst pyecsca-e50b0519ce783aba78a074883c24f2874fe3262b.zip | |
Add "astype" to trace.
Diffstat (limited to 'test/sca')
| -rw-r--r-- | test/sca/test_trace.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/sca/test_trace.py b/test/sca/test_trace.py index 98818d3..bea68f2 100644 --- a/test/sca/test_trace.py +++ b/test/sca/test_trace.py @@ -7,3 +7,9 @@ def test_basic(): assert trace is not None assert "Trace" in str(trace) assert trace.trace_set is None + + +def test_astype(): + trace = Trace(np.array([10, 15, 24], dtype=np.dtype("i1"))) + ta = trace.astype(np.float32) + assert ta.samples.dtype == np.float32 |
