File tree 2 files changed +21
-3
lines changed 2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,11 @@ pub fn Crc32WithPoly(comptime poly: Polynomial) type {
102
102
};
103
103
}
104
104
105
+ const please_windows_dont_oom = std .Target .current .os .tag == .windows ;
106
+
105
107
test "crc32 ieee" {
108
+ if (please_windows_dont_oom ) return error .SkipZigTest ;
109
+
106
110
const Crc32Ieee = Crc32WithPoly (.IEEE );
107
111
108
112
testing .expect (Crc32Ieee .hash ("" ) == 0x00000000 );
@@ -111,6 +115,8 @@ test "crc32 ieee" {
111
115
}
112
116
113
117
test "crc32 castagnoli" {
118
+ if (please_windows_dont_oom ) return error .SkipZigTest ;
119
+
114
120
const Crc32Castagnoli = Crc32WithPoly (.Castagnoli );
115
121
116
122
testing .expect (Crc32Castagnoli .hash ("" ) == 0x00000000 );
@@ -167,6 +173,8 @@ pub fn Crc32SmallWithPoly(comptime poly: Polynomial) type {
167
173
}
168
174
169
175
test "small crc32 ieee" {
176
+ if (please_windows_dont_oom ) return error .SkipZigTest ;
177
+
170
178
const Crc32Ieee = Crc32SmallWithPoly (.IEEE );
171
179
172
180
testing .expect (Crc32Ieee .hash ("" ) == 0x00000000 );
@@ -175,6 +183,8 @@ test "small crc32 ieee" {
175
183
}
176
184
177
185
test "small crc32 castagnoli" {
186
+ if (please_windows_dont_oom ) return error .SkipZigTest ;
187
+
178
188
const Crc32Castagnoli = Crc32SmallWithPoly (.Castagnoli );
179
189
180
190
testing .expect (Crc32Castagnoli .hash ("" ) == 0x00000000 );
Original file line number Diff line number Diff line change @@ -131,7 +131,11 @@ fn norm_zero_case(random: *Random, u: f64) f64 {
131
131
}
132
132
}
133
133
134
- test "ziggurant normal dist sanity" {
134
+ const please_windows_dont_oom = std .Target .current .os .tag == .windows ;
135
+
136
+ test "normal dist sanity" {
137
+ if (please_windows_dont_oom ) return error .SkipZigTest ;
138
+
135
139
var prng = std .rand .DefaultPrng .init (0 );
136
140
var i : usize = 0 ;
137
141
while (i < 1000 ) : (i += 1 ) {
@@ -158,14 +162,18 @@ fn exp_zero_case(random: *Random, _: f64) f64 {
158
162
return exp_r - math .ln (random .float (f64 ));
159
163
}
160
164
161
- test "ziggurant exp dist sanity" {
165
+ test "exp dist sanity" {
166
+ if (please_windows_dont_oom ) return error .SkipZigTest ;
167
+
162
168
var prng = std .rand .DefaultPrng .init (0 );
163
169
var i : usize = 0 ;
164
170
while (i < 1000 ) : (i += 1 ) {
165
171
_ = prng .random .floatExp (f64 );
166
172
}
167
173
}
168
174
169
- test "ziggurat table gen" {
175
+ test "table gen" {
176
+ if (please_windows_dont_oom ) return error .SkipZigTest ;
177
+
170
178
const table = NormDist ;
171
179
}
You can’t perform that action at this time.
0 commit comments