Remove Pharoisms to make code more portable and running on Smalltalk/X
* Use ANSI `(Character codePoint: 13)` (`10`) instead of `Character cr` (`lf`), This is more portable
and does not depend on dialects interpretation of `#cr` - Smalltalk/X convert it according to
platform line end convention (UNIX/Windows/Mac)
* Do not assume exact value of a printstring in tests, i.e., instead of
`msg includesSubstring: '$a'
code
`msg includesSubstring: $a printString.
This way, the test is independent on the printString value, which may differ among dialects.
Q: Is printString value of String and/or Character defined in ANSI?
* In assestions, instead of `#equals:` use plain old `#=`, which is more portable.
* Removed Character>>- used to create range parser. Use portable `(Interval from: $a to: $z) asParser`
instead of just `$a - $z`. Do not use ($a to: $z) asParser as in Pharo, Character>>to:
does not create an Interval but an Array (sigh).
/*
* $Header$
*
* DO NOT EDIT
* automagically generated from the projectDefinition: stx_goodies_petitparser_analyzer_tests.
*/
#define __INDIRECTVMINITCALLS__
#include <stc.h>
#ifdef WIN32
# pragma codeseg INITCODE "INITCODE"
#endif
#if defined(INIT_TEXT_SECTION) || defined(DLL_EXPORT)
DLL_EXPORT void _libstx_goodies_petitparser_analyzer_tests_Init() INIT_TEXT_SECTION;
DLL_EXPORT void _libstx_goodies_petitparser_analyzer_tests_InitDefinition() INIT_TEXT_SECTION;
#endif
void _libstx_goodies_petitparser_analyzer_tests_InitDefinition(pass, __pRT__, snd)
OBJ snd; struct __vmData__ *__pRT__; {
__BEGIN_PACKAGE2__("libstx_goodies_petitparser_analyzer_tests__DFN", _libstx_goodies_petitparser_analyzer_tests_InitDefinition, "stx:goodies/petitparser/analyzer/tests");
_stx_137goodies_137petitparser_137analyzer_137tests_Init(pass,__pRT__,snd);
__END_PACKAGE__();
}
void _libstx_goodies_petitparser_analyzer_tests_Init(pass, __pRT__, snd)
OBJ snd; struct __vmData__ *__pRT__; {
__BEGIN_PACKAGE2__("libstx_goodies_petitparser_analyzer_tests", _libstx_goodies_petitparser_analyzer_tests_Init, "stx:goodies/petitparser/analyzer/tests");
_stx_137goodies_137petitparser_137analyzer_137tests_Init(pass,__pRT__,snd);
__END_PACKAGE__();
}