With the thought of writing a track on Exercism.org for 8th, are there any unit test words for Forth-family languages?
With the thought of writing a track on Exercism.org for 8th, are there any unit test words for Forth-family languages?
. I would say 8th is non-standard.Agreed. However, unless someone takes on the challenge of writing a standard Forth track at Exercism, the only example of a forth-ish language there will be 8th.
On Wednesday, 25 May 2022 at 1:41:11 pm UTC+8, minf...@arcor.de wrote:The other problem is finding a Forth standard that everyone will, if not "agree to", at least will consent to.
. I would say 8th is non-standard.
On Wednesday, 25 May 2022 at 2:33:39 pm UTC+8, axtens wrote:
On Wednesday, 25 May 2022 at 1:41:11 pm UTC+8, minf...@arcor.de wrote:The other problem is finding a Forth standard that everyone will, if not "agree to", at least will consent to.
. I would say 8th is non-standard.
On Wednesday, 25 May 2022 at 4:19:45 pm UTC+8, minf...@arcor.de wrote:
IMO the Forth core wordset and its associated test programs tester.fr and core.frWhat I was after originally was not a "test suite" but a "unit test library". I'm not really interested in establishing whether the Forth is compliant with a Forth standard. I'm more interested in working within the pedagogical framework of Exercism.
should run on any Forth system. It is the "agreed" bare minimum.
IMO the Forth core wordset and its associated test programs tester.fr and core.fr
should run on any Forth system. It is the "agreed" bare minimum.
Bear in mind that more complete Forths are practically always full of
very individual (application domain specific) language extensions.
Sorry, I was not after compliance but after "unit testing".My apologies. Okay, that's very interesting. I shall look into it further.
So tester.fr provides Forth code for assertions in the form of
T{ ... -> ... }T
On Wednesday, 25 May 2022 at 5:40:07 pm UTC+8, minf...@arcor.de wrote:
Sorry, I was not after compliance but after "unit testing".My apologies. Okay, that's very interesting. I shall look into it further.
So tester.fr provides Forth code for assertions in the form of
T{ ... -> ... }T
On Wednesday, 25 May 2022 at 5:48:29 pm UTC+8, axtens wrote:
On Wednesday, 25 May 2022 at 5:40:07 pm UTC+8, minf...@arcor.de wrote:
Sorry, I was not after compliance but after "unit testing".My apologies. Okay, that's very interesting. I shall look into it further.
So tester.fr provides Forth code for assertions in the form of
T{ ... -> ... }T
And an example of its use in the documentation on question-dupe at http://lars.nocrew.org/forth2012/core/qDUP.html
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 39:42:47 |
Calls: | 6,708 |
Calls today: | 1 |
Files: | 12,241 |
Messages: | 5,353,645 |