Dear Tomasz,
I think that instead of trying to learn Regular Expressions for testing a wide range of outputs, it will be better for you to ask the students to use a strict output format. Then you can use a simpler format to check the output. e.g. exact text. You also can use multiple outputs to relax the accepted outputs. e.g.
Best regards,
Juan Carlos.
I think that instead of trying to learn Regular Expressions for testing a wide range of outputs, it will be better for you to ask the students to use a strict output format. Then you can use a simpler format to check the output. e.g. exact text. You also can use multiple outputs to relax the accepted outputs. e.g.
output = "x1 = -8.0 and x2 = 0 " output = "x1 = 0 and x2 = -8.0Noice that regular expression allows us to check the existence of a pattern in the output but not the unexistence of patterns.
"
Best regards,
Juan Carlos.