automatic_tests in a .java file

7 views
Skip to first unread message

Kyle Johnson

unread,
Jun 19, 2019, 11:20:45 AM6/19/19
to mathpiper-dev
How should I go about transferring the automatic_tests that are located in a .mpws file into a .java file?

The file that I am currently looking at is moving the automatic_tests from list_tests.mpws into Length.java.

The location of Length.java is mathpiperide\src\library_apps\mathpiper4\src\org\mathpiper\builtin\procedures\core\Length.java

If I do have to convert the Length.java into a Length.mpws please let me know the process to do that conversion as well as if the .mpws would stay in the same directory that it is currently.

Thanks!
Kyle

Ted Kosan

unread,
Jun 19, 2019, 11:31:28 AM6/19/19
to mathpi...@googlegroups.com
Kyle,

Near the bottom of each .java file that implements a built-in
MathPiper procedure is a Java comment that contains one or more folds.
mathpiperide/src/library_apps/mathpiper4/src/org/mathpiper/builtin/procedures/core/StringCompareNatural.java
is a good example.

The folds that are in these comments are processed in a similar manner
to the analogous folds in .mpws files when the system is built.

Ted
> --
> You received this message because you are subscribed to the Google Groups "mathpiper-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to mathpiper-de...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/mathpiper-dev/9e3316bf-ecea-4322-88fc-4942fdfce185%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages