summary refs log tree commit diff stats
path: root/tests/misc/tunsignedconv.nim
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-06-23 01:53:03 -0700
committerGitHub <noreply@github.com>2020-06-23 10:53:03 +0200
commita9eee6db65e72e0e11cbf5faf0794b1b6ac8bd0c (patch)
treed96374f850dd5317966fb81a6771e85a143e415f /tests/misc/tunsignedconv.nim
parent8e54bc5b0c06dcf2ed0de6b8a10733155e15dc0a (diff)
downloadNim-a9eee6db65e72e0e11cbf5faf0794b1b6ac8bd0c.tar.gz
misc testament cleanups (#14764)
* misc testament cleanups extracted cleanups from #14530

* make sure all CI failures can be searched with `FAIL: ` including megatest failures
Diffstat (limited to 'tests/misc/tunsignedconv.nim')
-rw-r--r--tests/misc/tunsignedconv.nim14
1 files changed, 4 insertions, 10 deletions
diff --git a/tests/misc/tunsignedconv.nim b/tests/misc/tunsignedconv.nim
index bc7aff30a..0e5fc43db 100644
--- a/tests/misc/tunsignedconv.nim
+++ b/tests/misc/tunsignedconv.nim
@@ -1,10 +1,4 @@
-discard """
-  output: '''uint
-1'''
-"""
-
 # Tests unsigned literals and implicit conversion between uints and ints
-# Passes if it compiles
 
 var h8:uint8 = 128
 var h16:uint16 = 32768
@@ -53,7 +47,7 @@ block t4176:
 proc fun(): uint = cast[uint](-1)
 const x0 = fun()
 
-echo typeof(x0)
+doAssert typeof(x0) is uint
 
 discard $x0
 
@@ -62,6 +56,6 @@ discard $x0
 const x1 = cast[uint](-1)
 discard $(x1,)
 
-# bug 13698
-let n: csize = 1
-echo n.int32
+# bug #13698
+let n: csize = 1 # xxx should that be csize_t or is that essential here?
+doAssert $n.int32 == "1"
/a>
4c13e1f2 ^



c9383c72 ^
4c13e1f2 ^








62cd83ba ^

4c13e1f2 ^















4c13e1f2 ^





















edf3d9f8 ^

4c13e1f2 ^



34a60763 ^
4c13e1f2 ^
34a60763 ^
4c13e1f2 ^




62cd83ba ^
4c13e1f2 ^


ef0157ff ^
4c13e1f2 ^


c9383c72 ^
4c13e1f2 ^








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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154