@b4n, @elextr: I just pushed another improvement for the on-hover-evaluation of 
expressions. It works like suggested by b4n and also allows spaces but it does 
only work on the current line.

I wanted to write unit tests for the function that parses the current line and 
extracts the expression to evaluate. But my unit tests don't build. I have 
setup an extra folder ```tests```. In it are the test files. If I try to build 
the tests via ```make check``` then compilation for the scope unit tests fails 
because ```check.h``` cannot be found. Another thing is that if I remove the 
comments from ```scope/tests/Makefile.am``` then none of the tests source code 
files is compiled. It now looks like this:
```
#if UNITTESTS

include $(top_srcdir)/build/vars.build.mk
plugin = scope

check_PROGRAMS = scope-check

scope_check_SOURCES  = unittests.c utils_test.c
scope_check_CPPFLAGS = -DTEST
scope_check_CFLAGS   = $(GEANY_CFLAGS) -DUNITTESTS
scope_check_LDADD    = @GEANY_LIBS@ $(INTLLIBS) @CHECK_LIBS@

TESTS = $(check_PROGRAMS)

#endif
```
So it seems that I have overseen one magic autotools switch which is still 
missing. Any help would be highly appreciated.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/823#issuecomment-466756660

Reply via email to