summaryrefslogtreecommitdiff
path: root/src/tests/compression/test72.h
diff options
context:
space:
mode:
authorDaniel Spangberg <daniels@kemi.uu.se>2013-05-25 09:22:05 (GMT)
committerDaniel Spangberg <daniels@kemi.uu.se>2013-05-25 09:22:05 (GMT)
commit4f846bcb0d2027955d5bab4151dcfedf86347cd8 (patch)
treee48e5a225877a921a46bcb274765c54e096c10a3 /src/tests/compression/test72.h
parent6380d1a869ee1c29d9b1ab2aa2ff403f3fbed14b (diff)
Add more tests for compression of frames that contain only zero
data. Add input data sanity checks. tng_compress routines now return NULL if input data is too large compared to the precision.
Diffstat (limited to 'src/tests/compression/test72.h')
-rw-r--r--src/tests/compression/test72.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/tests/compression/test72.h b/src/tests/compression/test72.h
new file mode 100644
index 0000000..633bb50
--- /dev/null
+++ b/src/tests/compression/test72.h
@@ -0,0 +1,25 @@
+#define TESTNAME "Coding. Compress zeros test. positions BWLZH inter"
+#define FILENAME "test72.tng_compress"
+#define ALGOTEST
+#define NATOMS 100
+#define CHUNKY 100
+#define SCALE 0.
+#define PRECISION 0.01
+#define WRITEVEL 0
+#define VELPRECISION 0.1
+#define INITIALCODING 3
+#define INITIALCODINGPARAMETER -1
+#define CODING 8
+#define CODINGPARAMETER 0
+#define INITIALVELCODING 3
+#define INITIALVELCODINGPARAMETER -1
+#define VELCODING 3
+#define VELCODINGPARAMETER -1
+#define INTMIN1 0
+#define INTMIN2 0
+#define INTMIN3 0
+#define INTMAX1 0
+#define INTMAX2 0
+#define INTMAX3 0
+#define NFRAMES 100
+#define EXPECTED_FILESIZE 257.
contact: Jan Huwald // Impressum