Skip to content

Commit b1de2e2

Browse files
authored
Update address_allocator.rs
1 parent cde5f5c commit b1de2e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/address_allocator.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,10 @@ mod tests {
193193
assert_eq!(pool.available(), 0x1000 - 0x110 - 0x100 - 0x10);
194194
// Allocate unaligned size 101
195195
assert_eq!(
196-
pool.allocate(101, 0x100, AllocPolicy::FirstMatch).unwrap(),
197-
RangeInclusive::new(0x1400, 0x1464).unwrap()
196+
pool.allocate(0x3, 0x100, AllocPolicy::FirstMatch).unwrap(),
197+
RangeInclusive::new(0x1400, 0x1402).unwrap()
198198
);
199-
assert_eq!(pool.available(), 0x1000 - 0x110 - 0x100 - 0x10 - 0x64);
199+
assert_eq!(pool.available(), 0x1000 - 0x110 - 0x100 - 0x10 - 0x3);
200200
}
201201

202202
#[test]

0 commit comments

Comments
 (0)