--
https://Interlisp.org for more details
---
You received this message because you are subscribed to the Google Groups "Medley Interlisp Users/Interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to interlisp+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/interlisp/CAGi1hzsMoneorzQ%2B_k--H7HeS4dxL4nD8NBdGH9FOWs43T3JLA%40mail.gmail.com.
I'm writing a tiny unit test framework for Interlisp that supports defining test functions with the DEFUN-like DEFTEST macro, for example:
On Jun 4, 2023, at 3:01 AM, Paolo Amoroso <paolo....@gmail.com> wrote:
On Thursday, June 1, 2023 at 8:15:51 PM UTC+2 Paolo Amoroso wrote:I'm writing a tiny unit test framework for Interlisp that supports defining test functions with the DEFUN-like DEFTEST macro, for example:I published the initial code of the test framework, Femtounit.
--
https://Interlisp.org for more details
---
You received this message because you are subscribed to the Google Groups "Medley Interlisp Users/Interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to interlisp+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/interlisp/6d728da4-8f91-42ca-8392-e46634722f05n%40googlegroups.com.
There is an extensive test framework in the test repo
perhaps you could work with me on the test framework? I haven't been able to get started on it, and it's pretty clear we need one.
See things like (DEF-LIST-FORMAT …) in SEDIT-LIST-FORMATS, and SEDIT-FORMATS. SEDIT-INDENT is the indentation engine, and I believe has quite a bit of flexibility.
I'd also like to change the way SEdit formats DEFTEST definitions so they're indented like DEFUN. I tried (SEDIT:DEF-LIST-FORMAT DEFTEST DEFUN) but it does nothing. SEdit applies the right DEFTEST formatting only if I copy and modify DEFUN's list format like this:(SEDIT:DEF-LIST-FORMAT DEFTEST :INDENT ((2)) :ARGS (:KEYWORD NIL :LAMBDA-LIST NIL) :SUBLISTS (3))
I created the new File Manager type TESTS for Femtounit tests and redefined DEFTEST in terms of it and now SEdit can handle DEFTEST definitions.
Creating a new type is actually not such a good idea as the tests get duplicated. The DEFTEST macro expands into a DEFINEQ function definition and the File Manager notices both, the DEFTEST form of type TESTS and the function of type FNS.
On Aug 29, 2023, at 9:30 AM, Paolo Amoroso <paolo....@gmail.com> wrote:
On Sun, Aug 27, 2023 at 1:32 PM Paolo Amoroso <paolo....@gmail.com> wrote:
Creating a new type is actually not such a good idea as the tests get duplicated. The DEFTEST macro expands into a DEFINEQ function definition and the File Manager notices both, the DEFTEST form of type TESTS and the function of type FNS.I made some progress but the issue isn't fixed yet. Ron suggested to use PUTD instead of DEFINEQ and I redefined DEFTEST like this:
<DEFTEST-PUTD.png>When defining a new test with DEFTEST the File Manager doesn't notice the test and FILES? doesn't list it at all. But, as soon as the test function is called, the File Manager does notice the function and FILES? lists it as new.
--
https://Interlisp.org for more details
---
You received this message because you are subscribed to the Google Groups "Medley Interlisp Users/Interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to interlisp+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/interlisp/CAGi1hzsW%2BtPFdH8pk7Tm4pmymDSFduu_LWJSktZdG8zdP6qQ_A%40mail.gmail.com.
Maybe you can get the finer control that you want by adding an explicit (MARKASCHANGED name ’TEST ‘DEFINED) ?
--
https://Interlisp.org for more details
---
You received this message because you are subscribed to the Google Groups "Medley Interlisp Users/Interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to interlisp+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/interlisp/CAGi1hzutR_iUKOgfO5dRDxgDzNeie32dMfgG09nq5dDd5WtCWA%40mail.gmail.com.
i'm not entirely sure what you mean by "duplication". In the Interlisp "flie package" model, Interlisp is not a 1-lisp or a 2-lisp but a N-lisp: each symbol can have definitions as multiple types.
By duplication I mean the File Manager notices both a DEFTEST definition associated with a type and the DEFINEQ function (or PUTD) by the same name it expands to. So, when there are new definitions or changes, FILES? asks what to do with both forms by the same name. I'll provide more details in the meeting.
As Nick suggested, in DEFTEST I replaced LET, which triggers the File Manager, with PROG, which isn't supposed to. But going through the same steps of the TEST.SQUARE example still
--
https://Interlisp.org for more details
---
You received this message because you are subscribed to the Google Groups "Medley Interlisp Users/Interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to interlisp+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/interlisp/CAGi1hztmBBasLV%2BE6ZHo2Vb4V-%2B411d0fBxUdZTcgZT9cOp5_w%40mail.gmail.com.