<html><head></head><body><div><div><div><div>I see what both of you mean, now! I was thinking of ways in which you could import your JW Lua code into the testing framework, not that you could import the testing framework into JW Lua. Yes, this should work.<br/></div><div><br/></div><div>Perhaps it might be good practice to start returning the main functions (e.g., <a href="https://github.com/Nick-Mazuk/jw-lua-scripts/blob/master/src/articulation_delete_duplicates.lua" target="_blank">in this script</a>, the articulation_delete_duplicates function). Then we could have a separate test file called *.test.lua (where the "*" is the original file name).<br/></div><div><br/></div><div>Nick<br/></div></div><div><div style="display: none; border: 0px; width: 0px; height: 0px; overflow: hidden; visibility: hidden;"><img src="https://r.superhuman.com/gWcSK9Mju0lsfu6eruklpjnQFWWebOCM_Y7yPcVkE3Y2DgTlHYN6MAbCZ7w07awssne5WZdpXxbOJIlnkUNde4Pku90GsdImlWf4kvlfAwGmTpm8hQwvf8BBD2VapLXDz-4ZWvkdkIARw0YKxH1zxFhqZKmik3jirP0L6LnHYtjZh1Kv.gif" alt=" " width="1" height="0" style="display: none; border: 0px; width: 0px; height: 0px; overflow: hidden; visibility: hidden;"/><!--                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                --></div><br/><div class="gmail_signature"></div></div><br/><div><div class="gmail_quote">On Tue, Sep 14, 2021 at 10:04 PM, Thomas Weber <span dir="ltr"><<a href="mailto:thomas.weber@notengrafik.com" target="_blank">thomas.weber@notengrafik.com</a>></span> wrote:<br/><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra"><div class="gmail_quote sh-color-black sh-color" style="null" id="null"><div class="moz-cite-prefix sh-color-black sh-color">Am 14.09.21 um 14:01 schrieb Robert
      Patterson:<br/>
    </div>
    <blockquote cite="mid:CAACncetKgJM5EjNfpQu85NjAxkGx2ptM_re=CP5GCL0qwH7M8Q@mail.gmail.com" type="cite" class="sh-color-black sh-color">
      
      <div dir="ltr" class="sh-color-black sh-color">
        <div class="sh-color-black sh-color">It looks to me like <a href="https://github.com/bjornbytes/lust" target="_blank" rel="noopener noreferrer">this one</a> would work in JW Lua.
          Basically any framework that is pure lua could be required
          into JW Lua. (And compatible with Lua 5.2, but if you've got
          the lua code for the framework, as in this example, that's a
          given.)<br/>
        </div>
      </div>
    </blockquote>
    <p class="sh-color-black sh-color"><br/>
    </p>
    <p class="sh-color-black sh-color">That looks good.  The ANSI color escapes are a bit irritating, so
      I created a <a href="https://github.com/bjornbytes/lust/pull/4" target="_blank" rel="noopener noreferrer">pull request</a>
      to get it fixed.</p>
    <p class="sh-color-black sh-color">It's a bit of a weird library because it "pollutes" itself with
      test suite state, but it seems to clean up properly after itself
      and we don't have to worry about concurrency and race conditions
      with JWLua.</p>
    <p class="sh-color-black sh-color">I realize the pull request was already merged – that was quick!<br/>
    </p>
    <p class="sh-color-black sh-color"><br/>
    </p>
    <pre cols="0" class="moz-signature sh-color-black sh-color">-- 

Notengrafik Berlin GmbH
HRB 150007

UstID: DE 289234097
Geschäftsführer:
Thomas Weber und Werner J. Wolff

fon: +49 30 25359505
Friedrichstraße 23a
10969 Berlin

<a target="_blank" rel="noopener noreferrer" href="http://notengrafik.com/">notengrafik.<wbr/>com</a></pre>
  



<p class="sh-color-black sh-color">_______________________________________________
<br/>
JWLua mailing list
<br/>
<a target="_blank" rel="noopener noreferrer" href="mailto:JWLua@jwmusic.nu">JWLua@<wbr/>jwmusic.<wbr/>nu</a>
<br/>
<a target="_blank" rel="noopener noreferrer" href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu">http:/<wbr/>/<wbr/>jwmusic.<wbr/>nu/<wbr/>mailman/<wbr/>listinfo/<wbr/>jwlua_jwmusic.<wbr/>nu</a></p></div></div></blockquote></div></div><br/></div></div></body></html>