File tree Expand file tree Collapse file tree 5 files changed +5
-4
lines changed Expand file tree Collapse file tree 5 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -53,13 +53,14 @@ test: $(TEST_OBJS) | $(BUILD_DIR)
53
53
@echo " TEST_FILE is $( TEST_FILE) "
54
54
@if [ -z " $( TEST_FILE) " ]; then \
55
55
echo " Error: Please specify a test file using TEST_FILE=<test_file>" ; \
56
- echo " Example: make test TEST_FILE=token_test " ; \
56
+ echo " Example: make test TEST_FILE=token " ; \
57
57
exit 1; \
58
58
else \
59
- echo " Compiling $( TEST_DIR) /$( TEST_FILE) .cpp" ; \
59
+ echo " Compiling $( TEST_DIR) /$( TEST_FILE) _test .cpp" ; \
60
60
$(CXX ) $(CXXFLAGS ) -I$(GTEST_DIR ) -L$(GTEST_LIB_DIR ) \
61
- $(TEST_DIR ) /$(TEST_FILE ) .cpp $(TEST_OBJS ) -lgtest -lgtest_main -pthread \
61
+ $(TEST_DIR ) /$(TEST_FILE ) _test .cpp $(TEST_OBJS ) -lgtest -lgtest_main -pthread \
62
62
-o $(BUILD_DIR ) /$(TEST_FILE ) _test && ./$(BUILD_DIR ) /$(TEST_FILE ) _test; \
63
63
fi
64
64
65
+
65
66
.PHONY : all clean run test
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ namespace TINY
106
106
// Test unknown tokens
107
107
TEST (ScannerTest, UnknownTokens)
108
108
{
109
- std::string input = " @ _ $ #" ;
109
+ std::string input = " @_ $ #" ;
110
110
Scanner scanner (input);
111
111
112
112
// First unknown token: "@"
You can’t perform that action at this time.
0 commit comments