2013-04-25 23:19:12 -04:00
|
|
|
USING: vocabs.prettyprint vocabs.prettyprint.private tools.test
|
|
|
|
io.streams.string eval ;
|
2009-05-16 03:32:55 -04:00
|
|
|
IN: vocabs.prettyprint.tests
|
|
|
|
|
|
|
|
: manifest-test-1 ( -- string )
|
2015-07-26 01:59:56 -04:00
|
|
|
"USING: kernel namespaces vocabs.parser vocabs.prettyprint ;
|
2009-05-16 03:32:55 -04:00
|
|
|
|
2015-07-26 01:59:56 -04:00
|
|
|
<< manifest get pprint-manifest >>" ;
|
2009-05-16 03:32:55 -04:00
|
|
|
|
2015-07-03 12:39:59 -04:00
|
|
|
{
|
2015-07-26 01:59:56 -04:00
|
|
|
"USING: kernel namespaces vocabs.parser vocabs.prettyprint ;"
|
2015-07-03 12:39:59 -04:00
|
|
|
}
|
2009-05-16 03:32:55 -04:00
|
|
|
[ [ manifest-test-1 eval( -- ) ] with-string-writer ] unit-test
|
|
|
|
|
|
|
|
: manifest-test-2 ( -- string )
|
2015-07-26 01:59:56 -04:00
|
|
|
"USING: kernel namespaces vocabs.parser vocabs.prettyprint ;
|
2009-05-16 03:32:55 -04:00
|
|
|
IN: vocabs.prettyprint.tests
|
|
|
|
|
2015-07-26 01:59:56 -04:00
|
|
|
<< manifest get pprint-manifest >>" ;
|
2009-05-16 03:32:55 -04:00
|
|
|
|
2015-07-03 12:39:59 -04:00
|
|
|
{
|
2015-07-26 01:59:56 -04:00
|
|
|
"USING: kernel namespaces vocabs.parser vocabs.prettyprint ;
|
|
|
|
IN: vocabs.prettyprint.tests"
|
2015-07-03 12:39:59 -04:00
|
|
|
}
|
2009-05-16 03:32:55 -04:00
|
|
|
[ [ manifest-test-2 eval( -- ) ] with-string-writer ] unit-test
|
|
|
|
|
|
|
|
: manifest-test-3 ( -- string )
|
2015-07-26 01:59:56 -04:00
|
|
|
"USING: kernel namespaces vocabs.parser vocabs.prettyprint ;
|
2009-05-16 03:32:55 -04:00
|
|
|
FROM: math => + - ;
|
|
|
|
QUALIFIED: system
|
|
|
|
QUALIFIED-WITH: assocs a
|
|
|
|
EXCLUDE: parser => run-file ;
|
|
|
|
IN: vocabs.prettyprint.tests
|
|
|
|
|
2015-07-26 01:59:56 -04:00
|
|
|
<< manifest get pprint-manifest >>" ;
|
2009-05-16 03:32:55 -04:00
|
|
|
|
2015-07-03 12:39:59 -04:00
|
|
|
{
|
2015-07-26 01:59:56 -04:00
|
|
|
"USING: kernel namespaces vocabs.parser vocabs.prettyprint ;
|
2009-05-16 03:32:55 -04:00
|
|
|
FROM: math => + - ;
|
|
|
|
QUALIFIED: system
|
|
|
|
QUALIFIED-WITH: assocs a
|
|
|
|
EXCLUDE: parser => run-file ;
|
2015-07-26 01:59:56 -04:00
|
|
|
IN: vocabs.prettyprint.tests"
|
2015-07-03 12:39:59 -04:00
|
|
|
}
|
2009-09-20 23:42:40 -04:00
|
|
|
[ [ manifest-test-3 eval( -- ) ] with-string-writer ] unit-test
|
2013-04-25 23:19:12 -04:00
|
|
|
|
2015-07-03 12:39:59 -04:00
|
|
|
{
|
2015-07-26 01:59:56 -04:00
|
|
|
"USING: alien.c-types alien.syntax byte-arrays io
|
2013-04-25 23:19:12 -04:00
|
|
|
io.encodings.binary io.encodings.string io.encodings.utf8
|
2015-07-26 01:59:56 -04:00
|
|
|
io.streams.byte-array kernel sequences system system-info unix ;"
|
2015-07-03 12:39:59 -04:00
|
|
|
} [
|
2013-04-25 23:19:12 -04:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"alien.c-types"
|
|
|
|
"alien.syntax"
|
|
|
|
"byte-arrays"
|
|
|
|
"io"
|
|
|
|
"io.encodings.binary"
|
|
|
|
"io.encodings.string"
|
|
|
|
"io.encodings.utf8"
|
|
|
|
"io.streams.byte-array"
|
|
|
|
"kernel"
|
|
|
|
"sequences"
|
|
|
|
"system"
|
|
|
|
"system-info"
|
|
|
|
"unix"
|
|
|
|
} pprint-using
|
|
|
|
] with-string-writer
|
|
|
|
] unit-test
|