Skip to content

Commit a6d5b81

Browse files
committed
fix: doctest
1 parent 76a1883 commit a6d5b81

File tree

1 file changed

+18
-18
lines changed
  • libs/@local/hashql/mir/src/interpret/value

1 file changed

+18
-18
lines changed

libs/@local/hashql/mir/src/interpret/value/int.rs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use crate::{
2727
/// # Examples
2828
///
2929
/// ```
30-
/// use hashql_mir::body::constant::Int;
30+
/// use hashql_mir::interpret::value::Int;
3131
///
3232
/// // Values that fit in the target range succeed
3333
/// let small = Int::from(42_i64);
@@ -70,7 +70,7 @@ impl Int {
7070
/// # Examples
7171
///
7272
/// ```
73-
/// use hashql_mir::body::constant::Int;
73+
/// use hashql_mir::interpret::value::Int;
7474
///
7575
/// assert_eq!(Int::from(true).as_bool(), Some(true));
7676
/// assert_eq!(Int::from(false).as_bool(), Some(false));
@@ -96,7 +96,7 @@ impl Int {
9696
/// # Examples
9797
///
9898
/// ```
99-
/// use hashql_mir::body::constant::Int;
99+
/// use hashql_mir::interpret::value::Int;
100100
///
101101
/// assert_eq!(Int::from(42_i8).as_i8(), Some(42));
102102
/// assert_eq!(Int::from(42_i64).as_i8(), Some(42));
@@ -122,7 +122,7 @@ impl Int {
122122
/// # Examples
123123
///
124124
/// ```
125-
/// use hashql_mir::body::constant::Int;
125+
/// use hashql_mir::interpret::value::Int;
126126
///
127127
/// assert_eq!(Int::from(42_i8).as_u8(), Some(42));
128128
/// assert_eq!(Int::from(255_u8).as_u8(), Some(255));
@@ -147,7 +147,7 @@ impl Int {
147147
/// # Examples
148148
///
149149
/// ```
150-
/// use hashql_mir::body::constant::Int;
150+
/// use hashql_mir::interpret::value::Int;
151151
///
152152
/// assert_eq!(Int::from(1000_i16).as_i16(), Some(1000));
153153
/// assert_eq!(Int::from(1000_i64).as_i16(), Some(1000));
@@ -171,7 +171,7 @@ impl Int {
171171
/// # Examples
172172
///
173173
/// ```
174-
/// use hashql_mir::body::constant::Int;
174+
/// use hashql_mir::interpret::value::Int;
175175
///
176176
/// assert_eq!(Int::from(1000_i16).as_u16(), Some(1000));
177177
/// assert_eq!(Int::from(65535_u16).as_u16(), Some(65535));
@@ -196,7 +196,7 @@ impl Int {
196196
/// # Examples
197197
///
198198
/// ```
199-
/// use hashql_mir::body::constant::Int;
199+
/// use hashql_mir::interpret::value::Int;
200200
///
201201
/// assert_eq!(Int::from(100_000_i32).as_i32(), Some(100_000));
202202
/// assert_eq!(Int::from(100_000_i64).as_i32(), Some(100_000));
@@ -220,7 +220,7 @@ impl Int {
220220
/// # Examples
221221
///
222222
/// ```
223-
/// use hashql_mir::body::constant::Int;
223+
/// use hashql_mir::interpret::value::Int;
224224
///
225225
/// assert_eq!(Int::from(100_000_i32).as_u32(), Some(100_000));
226226
/// assert_eq!(Int::from(3_000_000_000_u32).as_u32(), Some(3_000_000_000));
@@ -245,7 +245,7 @@ impl Int {
245245
/// # Examples
246246
///
247247
/// ```
248-
/// use hashql_mir::body::constant::Int;
248+
/// use hashql_mir::interpret::value::Int;
249249
///
250250
/// assert_eq!(Int::from(10_000_000_000_i64).as_i64(), Some(10_000_000_000));
251251
/// assert_eq!(
@@ -272,7 +272,7 @@ impl Int {
272272
/// # Examples
273273
///
274274
/// ```
275-
/// use hashql_mir::body::constant::Int;
275+
/// use hashql_mir::interpret::value::Int;
276276
///
277277
/// assert_eq!(Int::from(10_000_000_000_i64).as_u64(), Some(10_000_000_000));
278278
/// assert_eq!(Int::from(100_i32).as_u64(), Some(100));
@@ -297,7 +297,7 @@ impl Int {
297297
/// # Examples
298298
///
299299
/// ```
300-
/// use hashql_mir::body::constant::Int;
300+
/// use hashql_mir::interpret::value::Int;
301301
///
302302
/// assert_eq!(Int::from(i128::MAX).as_i128(), i128::MAX);
303303
/// assert_eq!(Int::from(i128::MIN).as_i128(), i128::MIN);
@@ -314,7 +314,7 @@ impl Int {
314314
/// # Examples
315315
///
316316
/// ```
317-
/// use hashql_mir::body::constant::Int;
317+
/// use hashql_mir::interpret::value::Int;
318318
///
319319
/// assert_eq!(Int::from(i128::MAX).as_u128(), Some(i128::MAX as u128));
320320
/// assert_eq!(Int::from(42_i8).as_u128(), Some(42));
@@ -337,7 +337,7 @@ impl Int {
337337
/// # Examples
338338
///
339339
/// ```
340-
/// use hashql_mir::body::constant::Int;
340+
/// use hashql_mir::interpret::value::Int;
341341
///
342342
/// assert_eq!(Int::from(42_isize).as_isize(), Some(42));
343343
/// assert_eq!(Int::from(-42_i32).as_isize(), Some(-42));
@@ -358,7 +358,7 @@ impl Int {
358358
/// # Examples
359359
///
360360
/// ```
361-
/// use hashql_mir::body::constant::Int;
361+
/// use hashql_mir::interpret::value::Int;
362362
///
363363
/// assert_eq!(Int::from(42_usize).as_usize(), Some(42));
364364
/// assert_eq!(Int::from(1000_i64).as_usize(), Some(1000));
@@ -383,7 +383,7 @@ impl Int {
383383
/// # Examples
384384
///
385385
/// ```
386-
/// use hashql_mir::body::constant::Int;
386+
/// use hashql_mir::interpret::value::Int;
387387
///
388388
/// assert_eq!(Int::from(42_i8).as_int(), 42);
389389
/// assert_eq!(Int::from(-1_i64).as_int(), -1);
@@ -418,7 +418,7 @@ impl Int {
418418
/// # Examples
419419
///
420420
/// ```
421-
/// use hashql_mir::body::constant::Int;
421+
/// use hashql_mir::interpret::value::Int;
422422
///
423423
/// // Positive values convert directly
424424
/// assert_eq!(Int::from(42_i8).as_uint(), 42);
@@ -441,7 +441,7 @@ impl Int {
441441
/// # Examples
442442
///
443443
/// ```
444-
/// use hashql_mir::body::constant::Int;
444+
/// use hashql_mir::interpret::value::Int;
445445
///
446446
/// assert_eq!(Int::from(42_i32).as_f32(), 42.0_f32);
447447
/// assert_eq!(Int::from(-1_i8).as_f32(), -1.0_f32);
@@ -460,7 +460,7 @@ impl Int {
460460
/// # Examples
461461
///
462462
/// ```
463-
/// use hashql_mir::body::constant::Int;
463+
/// use hashql_mir::interpret::value::Int;
464464
///
465465
/// assert_eq!(Int::from(42_i64).as_f64(), 42.0_f64);
466466
/// assert_eq!(Int::from(-1_i8).as_f64(), -1.0_f64);

0 commit comments

Comments
 (0)