tracks/sml/docs/EXERCISE_README_INSERT.md in trackler-2.1.0.53 vs tracks/sml/docs/EXERCISE_README_INSERT.md in trackler-2.1.0.54

- old
+ new

@@ -1,29 +1,12 @@ -## Setup +## Running the tests -You will need an SML interpreter to solve these problems. There are several popular implementations -[MLton](http://mlton.org/), [SML/NJ](http://www.smlnj.org/), and [PolyML](http://www.polyml.org/). For reference, the problems are being developed using PolyML. +Even though there are multiple implementations, we encourage to use Poly/ML. -## Testing Note: your problem implementation must be in a file named example.sml +``` +$ poly -q < test_{ exercise }.sml +``` -1. cd into your problem directory -2. use the test_<problem-name>.sml file with the SML interpreter of your choice (3 listed above) -3. verify that the allTestsPass variable has a true value - * if so, congrats - * if not, something is wrong with your implementation of the problem (or the test cases :|) - -#### Example: - - cd ~/exercism/sml/accumulate - poly - Poly/ML 5.2 Release - > use "test_accumulate.sml"; - val accumulate = fn : 'a list -> ('a -> 'b) -> 'b list - val it = () : unit - val test_cases = - [([], fn, []), ([1, 2, 3], fn, [1, 4, 9]), ([1, 2, 3], fn, [1, 8, 27]), - ([1, 2, 3], fn, [2, 3, 4]), ([1, 2, 3], fn, [0, 1, 2])] - : (int list * (int -> int) * int list) list - val allTestsPass = true : bool - val run_tests = fn : ('a list * ('a -> ''b) * ''b list) list -> bool list - val it = () : unit - (* inspect allTestsPass variable for true or false*) +If you want to start an interactive session: +``` +$ poly --use test_{ exercise }.sml +```