Blame view

RIOT/tests/unittests/common/unittests-constants.h 1.49 KB
a752c7ab   elopes   add first test an...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
  /*
   * Copyright (C) 2015 Philipp Rosenkranz <philipp.rosenkranz@fu-berlin.de>
   *
   * This file is subject to the terms and conditions of the GNU Lesser
   * General Public License v2.1. See the file LICENSE in the top level
   * directory for more details.
   */
  
  #ifndef UNITTESTS_CONSTANTS_H
  #define UNITTESTS_CONSTANTS_H
  #include "embUnit/embUnit.h"
  
  #ifdef __cplusplus
  extern "C" {
  #endif
  
  /* Some randomly generated but still deterministic values for testing */
  #ifndef TEST_STRING4
  #define TEST_STRING4 "J&(d"
  #endif
  #ifndef TEST_STRING8
  #define TEST_STRING8 "d)M Fvgh"
  #endif
  #ifndef TEST_STRING12
  #define TEST_STRING12 "50U'HLKC3_ft"
  #endif
  #ifndef TEST_STRING16
  #define TEST_STRING16 "nvxuO*6o3C=a6g7]"
  #endif
  #ifndef TEST_STRING64
  #define TEST_STRING64 "&]x2}L3e>Jj8\"NM}Ngd?)5V5-%:-EZD?V{fda{[JTkN):1}/*5t8Q1>CZu/$s.ML"
  #endif
  #ifndef TEST_INT8
  #define TEST_INT8 (-69)
  #endif
  #ifndef TEST_INT16
  #define TEST_INT16 (-12229)
  #endif
  #ifndef TEST_INT32
  #define TEST_INT32 (-1894529023L)
  #endif
  #ifndef TEST_INT64
  #define TEST_INT64 (-4562349816927799244LL)
  #endif
  #ifndef TEST_UINT8
  #define TEST_UINT8 (95U)
  #endif
  #ifndef TEST_UINT16
  #define TEST_UINT16 (10098U)
  #endif
  #ifndef TEST_UINT32
  #define TEST_UINT32 (2831907245LU)
  #endif
  #ifndef TEST_UINT64
  #define TEST_UINT64 (13500266397057512199LLU)
  #endif
  
  #if defined(CPU_CC430) || defined(CPU_MSP430FXYZ) || defined(CPU_ATMEGA2560)
  #define TEST_INT TEST_INT16
  #else
  #define TEST_INT TEST_INT32
  #endif
  
  #ifdef __cplusplus
  }
  #endif
  
  #endif /* UNITTESTS_CONSTANTS_H */
  /** @} */