Skip to content

Commit a43c599

Browse files
author
Matthias Kastner
committed
add null type functions to internal_dev
1 parent d91f78c commit a43c599

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

internal_dev/TestWaveType.ipf

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "unit-testing"
55

66
Function run_IGNORE()
7-
RunTest("TestWaveType.ipf", name="Test different Wave Types", testCase="testWaveTypes")
7+
RunTest("TestWaveType.ipf", name="Test different Wave Types", testCase="testWaveTypes;testNullType")
88
End
99

1010
Function testWaveTypes()
@@ -19,10 +19,18 @@ Function testWaveTypes()
1919

2020
Make/O/U/I root:wv2/WAVE=wv2
2121
CHECK_WAVE(wv2, NORMAL_WAVE | NUMERIC_WAVE, minorType = UNSIGNED_WAVE | INT32_WAVE)
22-
CHECK_WAVE(wv2, FREE_WAVE | NUMERIC_WAVE, minorType = UNSIGNED_WAVE | INT32_WAVE) // ! not a free wave
22+
WARN_WAVE(wv2, FREE_WAVE | NUMERIC_WAVE, minorType = UNSIGNED_WAVE | INT32_WAVE) // !fails: not a free wave
2323
End
2424

25-
Function checkWaveType()
25+
Function testNullType()
26+
WAVE/Z wv
27+
REQUIRE_WAVE(wv, NULL_WAVE)
28+
29+
Make/FREE wv
30+
WARN_WAVE(wv, NULL_WAVE) // !fails: not a null wave
31+
End
32+
33+
Function checkWaveType_IGNORE()
2634
WAVE/Z wv
2735
printWaveType(wv)
2836

internal_dev/TestWaveType.pxp

100644100755
-50.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)