File: test_double_serializer.expected

package info (click to toggle)
mpich 3.4.1-5~deb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 137,032 kB
  • sloc: ansic: 837,728; cpp: 67,921; f90: 53,548; javascript: 40,178; perl: 19,079; sh: 15,965; xml: 12,383; makefile: 8,369; fortran: 7,851; python: 2,706; java: 1,989; asm: 297; ruby: 103; lisp: 19; php: 8; sed: 4
file content (24 lines) | stat: -rw-r--r-- 842 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Test default serializer:
obj.to_string(standard)=0.5
Test default serializer with custom userdata:
obj.to_string(userdata)=0.5
Test explicit serializer with custom userdata:
obj.to_string(custom)=test
Test reset serializer:
obj.to_string(reset)=0.5
Test no zero reset serializer:
obj.to_string(reset)=3.1415000000000002
obj.to_string(default format)=0.52381
obj.to_string(with global format)=x0.524y
obj.to_string(with thread format)=T0.52X
obj.to_string(long thread format)=Ttttttttttttt0.52xxxxxxxxxxxxxxxxxxX
obj.to_string(back to global format)=x0.524y
obj.to_string(back to default format)=0.52381
obj(12.0).to_string(default format)=12.0
obj(12.0).to_string(%.0f)=12
obj(12.0).to_string(%.0g)=1e+01
obj(12.0).to_string(%.1g)=12.0
obj(-12.0).to_string(default format)=-12.0
obj(0.0/0.0)=NaN
obj(1.0/0.0)=Infinity
obj(-1.0/0.0)=-Infinity