Why does RegexTest have a main method?

I wonder why scala.util.parsing.combinator.testing.RegexTest has a main method.

Are library classes intended from within the program and do not run separately as an independent executable?

+3
source share
1 answer

This is not the only one. I especially like it scala.swing.test.UIDemo. I really, really don't think they should be associated with the library, but they are. Basically, these are examples that you can run directly:

scala scala.swing.test.UIDemo
+4
source

All Articles