Mark,

I was looking at what you've done for processing syntax errors in the
CONSTANT directive test group, and I have some suggestions that might
make these types of tests easier to manage.  To start with, you can
completely eliminate the need to write this to a file by using the new
package class.  For example,

    src = .array~new
    src[1] = "return 0"
    src[2] = ""
    src[3] = "::class 'TestClass'"
    src[4] = "::constant PI 3.14195"
    src[5] = "::constant ZERO 0.0"
    src[6] = "::constant PI 3.14195"

    p = .package~new("test", src)

will do the parsing completely in memory, so there's not setup or tear down.

Also, it might be nice if this could be incorporated as part of the
base infrastructure:

   self~assertSyntaxError(99.932, src)

or maybe even,

   self~assertSyntaxError(99, 932,    -
   "return 0" , -
    "", -
    "::class 'TestClass'",   -
    "::constant PI 3.14195",  -
    "::constant ZERO 0.0", -
    "::constant PI 3.14195"  )

Rick

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to