Lab 1

48 views
Skip to first unread message

Alexander Kloutschek

unread,
Nov 6, 2018, 6:37:37 AM11/6/18
to 2018 Functional Programming TDA452 / DIT 143
Hello,

I was wondering whether we are allowed to modify the pre-defined method "power" in Lab 1.
Or should we not consider test cases in part 4A that are out of the scope for that method such as negative numbers and doubles.
Or are we supposed to handle errors for things such as negative numbers in the test method from part 4C?

Best regards,

Alex

Thomas Hallgren

unread,
Nov 6, 2018, 6:51:24 AM11/6/18
to Alexander Kloutschek, 2018 Functional Programming TDA452 / DIT 143
Hello,

You are not supposed to change the predefined power function. If there are problems running quickCheck prop_powers as you defined it 4B, e.g. because of negative numbers, you are supposed to solve that by defining an improved version prop_powers' in 4D.

Best regards,
Thomas Hallgren
--
You received this message because you are subscribed to the Google Groups "2018 Functional Programming TDA452 / DIT 143" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chalmers-fp-20...@googlegroups.com.
To post to this group, send email to chalmers...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chalmers-fp-2018/2421b56e-cb83-4222-bfdc-6d2c13c745cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages