feat(Evaluator): add pow operator
feat(Evaluator): add minus sign reducing fix(Evaluator): trim spaces test: add base for unit testing
This commit is contained in:
parent
17c7c247af
commit
a62dd411aa
20 changed files with 654 additions and 137 deletions
8
Makefile
8
Makefile
|
|
@ -2,5 +2,11 @@ WERROR?=
|
|||
CFLAGS=-Wall -Wextra $(WERROR) -pedantic -I.
|
||||
CXXFLAGS_WITHOUT_PKGS=$(CFLAGS) -fno-exceptions -Wno-missing-braces -Wswitch-enum -lm
|
||||
|
||||
TEST_SRCS_ENC := $(foreach DIR,src,$(patsubst $(DIR)/%,%,$(wildcard ./src/*.c)))
|
||||
TEST_SRCS_ENC := $(filter-out %main.c, $(TEST_SRCS_ENC))
|
||||
|
||||
build:
|
||||
gcc src/* -o ./main ${CXXFLAGS_WITHOUT_PKGS}
|
||||
gcc src/* -o ./bin/main ${CXXFLAGS_WITHOUT_PKGS}
|
||||
test:
|
||||
gcc ${TEST_SRCS_ENC} ./tests/* -o ./bin/test ${CXXFLAGS_WITHOUT_PKGS}
|
||||
./bin/test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue