|
33 | 33 |
|
34 | 34 |
|
35 | 35 | class TypesTest(unittest.TestCase): |
| 36 | + # fmt: off |
36 | 37 | JSON = ( |
37 | 38 | "{" |
38 | | - '"posByte":123,"negByte":-98,' |
39 | | - '"posDouble":9.876543210123456,"negDouble":-1.234567890987654e+302,' |
40 | | - '"posFloat":9.876543,"negFloat":-1.2345678,' |
41 | | - '"posInt":1234567890,"negInt":-987654321,' |
42 | | - '"posLong":12345678987654321,"negLong":-98765432123456789,' |
43 | | - '"posShort":32109,"negShort":-23456,' |
44 | | - '"trueBoolean":true,"falseBoolean":false,' |
45 | | - '"nullChar":"\\u0000",' |
46 | | - '"aString":"-=[]\\\\;\',./_+{}|:\\"<>?' |
47 | | - "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz" |
48 | | - '~!@#$%^&*()",' |
49 | | - '"numbers":[1,1,2,3,5,8],' |
50 | | - '"words":["quick","brown","fox"],' |
51 | | - # fmt: off |
52 | | - '"ndArray":{' |
53 | | - '"appose_type":"ndarray",' # noqa: E131 |
54 | | - '"dtype":"float32",' # noqa: E131 |
55 | | - '"shape":[2,20,25],' # noqa: E131 |
56 | | - '"shm":{' # noqa: E131 |
57 | | - '"appose_type":"shm",' # noqa: E131 |
58 | | - '"name":"SHM_NAME",' # noqa: E131 |
59 | | - '"rsize":4000' # noqa: E131 |
60 | | - "}" # noqa: E131 |
61 | | - "}" |
62 | | - # fmt: on |
| 39 | + '"posByte":123,"negByte":-98,' |
| 40 | + '"posDouble":9.876543210123456,"negDouble":-1.234567890987654e+302,' |
| 41 | + '"posFloat":9.876543,"negFloat":-1.2345678,' |
| 42 | + '"posInt":1234567890,"negInt":-987654321,' |
| 43 | + '"posLong":12345678987654321,"negLong":-98765432123456789,' |
| 44 | + '"posShort":32109,"negShort":-23456,' |
| 45 | + '"trueBoolean":true,"falseBoolean":false,' |
| 46 | + '"nullChar":"\\u0000",' |
| 47 | + '"aString":"-=[]\\\\;\',./_+{}|:\\"<>?' |
| 48 | + "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz" |
| 49 | + '~!@#$%^&*()",' |
| 50 | + '"numbers":[1,1,2,3,5,8],' |
| 51 | + '"words":["quick","brown","fox"],' |
| 52 | + '"ndArray":{' |
| 53 | + '"appose_type":"ndarray",' |
| 54 | + '"dtype":"float32",' |
| 55 | + '"shape":[2,20,25],' |
| 56 | + '"shm":{' |
| 57 | + '"appose_type":"shm",' |
| 58 | + '"name":"SHM_NAME",' |
| 59 | + '"rsize":4000' |
| 60 | + "}" |
| 61 | + "}" |
63 | 62 | "}" |
64 | 63 | ) |
| 64 | + # fmt: on |
65 | 65 |
|
66 | 66 | STRING = ( |
67 | 67 | "-=[]\\;',./_+{}|:\"<>?" |
|
0 commit comments