summary refs log tree commit diff stats
path: root/tests/arithm
diff options
context:
space:
mode:
authorJasper Jenkins <jasper.vs.jenkins@gmail.com>2019-10-10 23:38:08 -0700
committerAndreas Rumpf <rumpf_a@web.de>2019-10-11 08:38:08 +0200
commit245a954b250b3e95f68c6bdadeba6ef1425442aa (patch)
treeb45356858b54728f3e36ddfb2b13f8e5a54ed0b9 /tests/arithm
parent9e62876647e4b7d5c31854abf16596b76cd03b4a (diff)
downloadNim-245a954b250b3e95f68c6bdadeba6ef1425442aa.tar.gz
ungeneric unsigned ops (#12230)
* ungenericise unsigned ops, remove nimNewShiftOps
* fix/remove tests
* update t6448
* fix line info
* disable on 32bit
* fix different line info
* add changelog entry
Diffstat (limited to 'tests/arithm')
-rw-r--r--tests/arithm/tarithm.nim22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/arithm/tarithm.nim b/tests/arithm/tarithm.nim
index 4625a5ecf..fcb78bd7a 100644
--- a/tests/arithm/tarithm.nim
+++ b/tests/arithm/tarithm.nim
@@ -4,6 +4,14 @@ int32
 int32
 1280
 1280
+3
+1
+2
+2
+3
+4294967295
+2
+0
 '''
 """
 
@@ -145,3 +153,17 @@ block tsubrange:
 
   level = min(level + 2, maxLevel).n16
   doAssert level == 1
+
+block tissue12177:
+  var a: uint16 = 1
+  var b: uint32 = 2
+
+  echo(b + a)
+  echo(b - a)
+  echo(b * a)
+  echo(b div a)
+
+  echo(a + b)
+  echo(a - b)
+  echo(a * b)
+  echo(a div b)
lt;dominikpicheta@gmail.com> 2016-11-21 20:55:37 +0100 Fix inaccuracy surrounding Nimble in doc/nims.rst.' href='/ahoang/Nim/commit/doc/nims.rst?h=devel&id=e6f6323e770d326e633c5f1d7e5205d7cb2c4ca3'>e6f6323e7 ^
adf34082f ^

























9ffed0de3 ^








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