TheSwanFactory / hclang

Homoiconic C - a universal data format for computation
https://theswanfactory.wordpress.com/2016/12/20/homoiconic-c-a-universal-language-for-code-and-data/
MIT License
4 stars 0 forks source link

`npm run testdoc` pauses #170

Closed drernie closed 1 year ago

drernie commented 1 year ago

When I run a test doc test, it unexpectedly pauses at the end. I have to hit enter before my prompt returns.

if I have an echo at the end, that doesn't show until afterwards.

Is it somehow waiting for input?!?

drernie commented 1 year ago

Yes, doctest implicitly invokes the REPL

Welcome to the HCLang REPL!
.hc 0.5.1;
; #
drernie commented 1 year ago

set evaluated = true (and check before repl)

drernie commented 1 year ago

Fixed. And restores doc test coloring!