1 ! Copyright (C) 2009 Joe Groff.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: accessors alien destructors kernel math
4 memory.piles tools.test ;
10 [ 25 pile-alloc ] [ 50 pile-alloc ] bi
11 swap [ alien-address ] bi@ -
18 [ 25 pile-alloc ] [ 8 pile-align 50 pile-alloc ] bi
19 swap [ alien-address ] bi@ -
26 dup 25 pile-alloc drop
27 dup 50 pile-alloc drop
35 dup 25 pile-alloc drop
36 dup 75 pile-alloc drop
44 dup 25 pile-alloc drop
45 dup 76 pile-alloc drop
47 ] [ not-enough-pile-space? ] must-fail-with