Closed deckar01 closed 6 years ago
This sounds like a good change to me. Care to open a PR?
I'm not sure about your solution. While I think it's a fine idea, it doesn't seem like quite enough, since the test would still pass regardless. Perhaps in the language documentation one could write about how prolog differs from the typical PL? It may also be beneficial to change the first test to be something like
test(hello_world, condition(true)) :-
hello_world(null, Message),
Message == "Hello World".
(assuming null exists in prolog, it's been too long since I've used it)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
It was not clear to me that the last argument in the
hello_world
fact was effectively used as output. My initial guess was to usewrite/1
and echo the first argument, and it actually caused the first test to pass, which was confusing.After looking at the tests for the second lesson, I think it uses a style that makes the objective a little clearer.
might be clearer as: