Skip to content

Commit

Permalink
CMakeified everything. Most tests are working with the exception of 2.
Browse files Browse the repository at this point in the history
-Kurtis
  • Loading branch information
klnusbaum committed May 19, 2011
1 parent 0aa0132 commit 47301d8
Show file tree
Hide file tree
Showing 354 changed files with 1,047 additions and 2 deletions.
25 changes: 25 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
cmake_minimum_required(VERSION 2.8)
project(lci)

ENABLE_TESTING()
SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake )

SET(HDRS
interpreter.h
lexer.h
parser.h
tokenizer.h
unicode.h
)

SET(SRCS
interpreter.c
lexer.c
main.c
parser.c
tokenizer.c
unicode.c
)

add_executable(lci ${SRCS} ${HDRS})
add_subdirectory(test)
25 changes: 25 additions & 0 deletions cmake/AddLolTest.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
INCLUDE(ParseArguments)


FUNCTION(ADD_LOL_TEST TEST_NAME)
PARSE_ARGUMENTS(ARG "LOLCODE;OUTPUT;ERROR" "" ${ARGN})

IF(NOT ARG_LOLCODE)
SET(ARG_LOLCODE ${CMAKE_CURRENT_SOURCE_DIR}/test.lol)
ENDIF(NOT ARG_LOLCODE)

SET( TEST_COMMAND python ${CMAKE_SOURCE_DIR}/test/testDriver.py ${CMAKE_BINARY_DIR}/lci ${ARG_LOLCODE} )

IF(ARG_OUTPUT)
LIST(APPEND TEST_COMMAND -o=${CMAKE_CURRENT_SOURCE_DIR}/${ARG_OUTPUT})
ENDIF(ARG_OUTPUT)

IF(ARG_ERROR)
LIST(APPEND TEST_COMMAND -e=${CMAKE_CURRENT_SOURCE_DIR}/${ARG_ERROR})
ENDIF(ARG_ERROR)


ADD_TEST(NAME ${TEST_NAME} COMMAND ${TEST_COMMAND})

ENDFUNCTION()

30 changes: 30 additions & 0 deletions cmake/ParseArguments.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
MACRO(PARSE_ARGUMENTS prefix arg_names option_names)
SET(DEFAULT_ARGS)
FOREACH(arg_name ${arg_names})
SET(${prefix}_${arg_name})
ENDFOREACH(arg_name)
FOREACH(option ${option_names})
SET(${prefix}_${option} FALSE)
ENDFOREACH(option)

SET(current_arg_name DEFAULT_ARGS)
SET(current_arg_list)
FOREACH(arg ${ARGN})
SET(larg_names ${arg_names})
LIST(FIND larg_names "${arg}" is_arg_name)
IF (is_arg_name GREATER -1)
SET(${prefix}_${current_arg_name} ${current_arg_list})
SET(current_arg_name ${arg})
SET(current_arg_list)
ELSE (is_arg_name GREATER -1)
SET(loption_names ${option_names})
LIST(FIND loption_names "${arg}" is_option)
IF (is_option GREATER -1)
SET(${prefix}_${arg} TRUE)
ELSE (is_option GREATER -1)
SET(current_arg_list ${current_arg_list} ${arg})
ENDIF (is_option GREATER -1)
ENDIF (is_arg_name GREATER -1)
ENDFOREACH(arg)
SET(${prefix}_${current_arg_name} ${current_arg_list})
ENDMACRO(PARSE_ARGUMENTS)
2 changes: 2 additions & 0 deletions test/1.2-Tests/1-Structure/1-EmptyMainBlock/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(1-EmptyMainBlock OUTPUT test.out)
2 changes: 2 additions & 0 deletions test/1.2-Tests/1-Structure/10-CommasSeparate/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(10-CommasSeparate OUTPUT test.out)
2 changes: 2 additions & 0 deletions test/1.2-Tests/1-Structure/11-EllipsesJoinLF/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(11-EllipsesJoinLF OUTPUT test.out)
2 changes: 2 additions & 0 deletions test/1.2-Tests/1-Structure/12-EllipsesJoinCR/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(12-EllipsesJoinCR OUTPUT test.out)
2 changes: 2 additions & 0 deletions test/1.2-Tests/1-Structure/13-EllipsesJoinCRLF/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(13-EllipsesJoinCRLF OUTPUT test.out)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
Add_LOL_TEST(14-NoNewlineAfterJoinLF)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
Add_LOL_TEST(15-NoNewlineAfterJoinCR)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
Add_LOL_TEST(16-NoNewlineAfterJoinCRLF)
2 changes: 2 additions & 0 deletions test/1.2-Tests/1-Structure/17-Includes/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(17-Includes OUTPUT test.out)
2 changes: 2 additions & 0 deletions test/1.2-Tests/1-Structure/2-MustBeginWithHAI/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
Add_LOL_TEST(2-MustBeginWithHAI)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
Add_LOL_TEST(3-MustIncludeVersion)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
Add_LOL_TEST(4-MustEndWithKTHXBYE)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(5-IndentationIgnored OUTPUT test.out)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(6-WhitespaceBetweenTokens OUTPUT test.out)
2 changes: 2 additions & 0 deletions test/1.2-Tests/1-Structure/7-NewlineLF/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(7-NewlineLF OUTPUT test.out)
2 changes: 2 additions & 0 deletions test/1.2-Tests/1-Structure/8-NewlineCR/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(8-NewlineCR OUTPUT test.out)
2 changes: 2 additions & 0 deletions test/1.2-Tests/1-Structure/9-NewlineCRLF/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(9-NewlineCRLF OUTPUT test.out)
17 changes: 17 additions & 0 deletions test/1.2-Tests/1-Structure/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
add_subdirectory(1-EmptyMainBlock)
add_subdirectory(10-CommasSeparate)
add_subdirectory(11-EllipsesJoinLF)
add_subdirectory(12-EllipsesJoinCR)
add_subdirectory(13-EllipsesJoinCRLF)
add_subdirectory(14-NoNewlineAfterJoinLF)
add_subdirectory(15-NoNewlineAfterJoinCR)
add_subdirectory(16-NoNewlineAfterJoinCRLF)
add_subdirectory(17-Includes)
add_subdirectory(2-MustBeginWithHAI)
add_subdirectory(3-MustIncludeVersion)
add_subdirectory(4-MustEndWithKTHXBYE)
add_subdirectory(5-IndentationIgnored)
add_subdirectory(6-WhitespaceBetweenTokens)
add_subdirectory(7-NewlineLF)
add_subdirectory(8-NewlineCR)
add_subdirectory(9-NewlineCRLF)
2 changes: 2 additions & 0 deletions test/1.2-Tests/10-Loops/1-Breaks/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(1-Breaks OUTPUT test.out)
2 changes: 2 additions & 0 deletions test/1.2-Tests/10-Loops/2-Increment/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(2-Increment OUTPUT test.out)
2 changes: 2 additions & 0 deletions test/1.2-Tests/10-Loops/3-Decrement/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(3-Decrement OUTPUT test.out)
2 changes: 2 additions & 0 deletions test/1.2-Tests/10-Loops/4-Until/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(4-Until OUTPUT test.out)
2 changes: 2 additions & 0 deletions test/1.2-Tests/10-Loops/5-While/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(5-While OUTPUT test.out)
2 changes: 2 additions & 0 deletions test/1.2-Tests/10-Loops/6-UnaryFunction/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(6-UnaryFunction OUTPUT test.out)
2 changes: 2 additions & 0 deletions test/1.2-Tests/10-Loops/7-EmptyBody/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(7-EmptyBody OUTPUT test.out)
2 changes: 2 additions & 0 deletions test/1.2-Tests/10-Loops/8-UntilMustIncludeVar/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
Add_LOL_TEST(8-UntilMustIncludeVar)
2 changes: 2 additions & 0 deletions test/1.2-Tests/10-Loops/9-WhileMustIncludeVar/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
Add_LOL_TEST(9-WhileMustIncludeVar)
9 changes: 9 additions & 0 deletions test/1.2-Tests/10-Loops/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
add_subdirectory(1-Breaks)
add_subdirectory(2-Increment)
add_subdirectory(3-Decrement)
add_subdirectory(4-Until)
add_subdirectory(5-While)
add_subdirectory(6-UnaryFunction)
add_subdirectory(7-EmptyBody)
add_subdirectory(8-UntilMustIncludeVar)
add_subdirectory(9-WhileMustIncludeVar)
2 changes: 2 additions & 0 deletions test/1.2-Tests/11-Unicode/1-EllipsesJoinLF/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(1-EllipsesJoinLF OUTPUT test.out)
2 changes: 2 additions & 0 deletions test/1.2-Tests/11-Unicode/2-EllipsesJoinCR/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(2-EllipsesJoinCR OUTPUT test.out)
2 changes: 2 additions & 0 deletions test/1.2-Tests/11-Unicode/3-EllipsesJoinCRLF/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(3-EllipsesJoinCRLF OUTPUT test.out)
2 changes: 2 additions & 0 deletions test/1.2-Tests/11-Unicode/4-Strings/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(4-Strings OUTPUT test.out)
2 changes: 2 additions & 0 deletions test/1.2-Tests/11-Unicode/5-CodePointInString/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(5-CodePointInString OUTPUT test.out)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(6-NormativeNameInString OUTPUT test.out)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
Add_LOL_TEST(7-InvalidCodePointInString)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
Add_LOL_TEST(8-InvalidNormativeName)
2 changes: 2 additions & 0 deletions test/1.2-Tests/11-Unicode/9-ByteOrderMark/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(9-ByteOrderMark OUTPUT test.out)
9 changes: 9 additions & 0 deletions test/1.2-Tests/11-Unicode/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
add_subdirectory(1-EllipsesJoinLF)
add_subdirectory(2-EllipsesJoinCR)
add_subdirectory(3-EllipsesJoinCRLF)
add_subdirectory(4-Strings)
add_subdirectory(5-CodePointInString)
add_subdirectory(6-NormativeNameInString)
add_subdirectory(7-InvalidCodePointInString)
add_subdirectory(8-InvalidNormativeName)
add_subdirectory(9-ByteOrderMark)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(1-EndOfLine OUTPUT test.out)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(2-SeparateLine OUTPUT test.out)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(3-AfterCommaSeparator OUTPUT test.out)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(4-BeforeHAI OUTPUT test.out)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(5-AfterKTHXBYE OUTPUT test.out)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
Add_LOL_TEST(6-IgnoreContinuation)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(7-IgnoreJoin OUTPUT test.out)
7 changes: 7 additions & 0 deletions test/1.2-Tests/2-Comments/1-SingleLine/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
add_subdirectory(1-EndOfLine)
add_subdirectory(2-SeparateLine)
add_subdirectory(3-AfterCommaSeparator)
add_subdirectory(4-BeforeHAI)
add_subdirectory(5-AfterKTHXBYE)
add_subdirectory(6-IgnoreContinuation)
add_subdirectory(7-IgnoreJoin)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(1-SeparateStartEndLines OUTPUT test.out)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(10-AfterKTHXBYE OUTPUT test.out)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(2-SeparateStartLineOnly OUTPUT test.out)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(3-SeparateEndLineOnly OUTPUT test.out)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
Add_LOL_TEST(4-MustStartOnSeparateLine)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
Add_LOL_TEST(5-MustEndOnOwnLine)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(6-BeginAfterLineSeparator OUTPUT test.out)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(7-EndBeforeLineSeparator OUTPUT test.out)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(8-IgnoreEmbeddedBTW OUTPUT test.out)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(9-BeforeHAI OUTPUT test.out)
10 changes: 10 additions & 0 deletions test/1.2-Tests/2-Comments/2-MultipleLine/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
add_subdirectory(1-SeparateStartEndLines)
add_subdirectory(10-AfterKTHXBYE)
add_subdirectory(2-SeparateStartLineOnly)
add_subdirectory(3-SeparateEndLineOnly)
add_subdirectory(4-MustStartOnSeparateLine)
add_subdirectory(5-MustEndOnOwnLine)
add_subdirectory(6-BeginAfterLineSeparator)
add_subdirectory(7-EndBeforeLineSeparator)
add_subdirectory(8-IgnoreEmbeddedBTW)
add_subdirectory(9-BeforeHAI)
2 changes: 2 additions & 0 deletions test/1.2-Tests/2-Comments/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
add_subdirectory(1-SingleLine)
add_subdirectory(2-MultipleLine)
2 changes: 2 additions & 0 deletions test/1.2-Tests/3-Types/1-Nil/1-NilToBoolean/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(1-NilToBoolean OUTPUT test.out)
2 changes: 2 additions & 0 deletions test/1.2-Tests/3-Types/1-Nil/2-NilToInteger/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
Add_LOL_TEST(2-NilToInteger)
2 changes: 2 additions & 0 deletions test/1.2-Tests/3-Types/1-Nil/3-NilToFloat/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
Add_LOL_TEST(3-NilToFloat)
2 changes: 2 additions & 0 deletions test/1.2-Tests/3-Types/1-Nil/4-NilToString/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
Add_LOL_TEST(4-NilToString)
4 changes: 4 additions & 0 deletions test/1.2-Tests/3-Types/1-Nil/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
add_subdirectory(1-NilToBoolean)
add_subdirectory(2-NilToInteger)
add_subdirectory(3-NilToFloat)
add_subdirectory(4-NilToString)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(1-BooleanImplicitCasts OUTPUT test.out)
1 change: 1 addition & 0 deletions test/1.2-Tests/3-Types/2-Boolean/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add_subdirectory(1-BooleanImplicitCasts)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(1-NegativeValue OUTPUT test.out)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
Add_LOL_TEST(2-MustHaveAdjacentHyphen)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(3-ImplicitCasts OUTPUT test.out)
3 changes: 3 additions & 0 deletions test/1.2-Tests/3-Types/3-Integer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
add_subdirectory(1-NegativeValue)
add_subdirectory(2-MustHaveAdjacentHyphen)
add_subdirectory(3-ImplicitCasts)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
Add_LOL_TEST(1-OnlyOneDecimalPoint)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
Add_LOL_TEST(2-MustHaveAdjacentHyphen)
2 changes: 2 additions & 0 deletions test/1.2-Tests/3-Types/4-Float/3-ImplicitCasts/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(3-ImplicitCasts OUTPUT test.out)
2 changes: 2 additions & 0 deletions test/1.2-Tests/3-Types/4-Float/4-Truncation/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(4-Truncation OUTPUT test.out)
4 changes: 4 additions & 0 deletions test/1.2-Tests/3-Types/4-Float/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
add_subdirectory(1-OnlyOneDecimalPoint)
add_subdirectory(2-MustHaveAdjacentHyphen)
add_subdirectory(3-ImplicitCasts)
add_subdirectory(4-Truncation)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(1-Newline OUTPUT test.out)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(2-Tab OUTPUT test.out)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(3-Bell OUTPUT test.out)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(4-DoubleQuote OUTPUT test.out)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(5-Colon OUTPUT test.out)
5 changes: 5 additions & 0 deletions test/1.2-Tests/3-Types/5-String/1-Escapes/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
add_subdirectory(1-Newline)
add_subdirectory(2-Tab)
add_subdirectory(3-Bell)
add_subdirectory(4-DoubleQuote)
add_subdirectory(5-Colon)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
Add_LOL_TEST(1-IgnoreContinuation)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(2-IgnoreJoins OUTPUT test.out)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
Add_LOL_TEST(3-MustHaveClosingQuote)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INCLUDE(AddLolTest)
ADD_LOL_TEST(4-IgnoreComments OUTPUT test.out)
4 changes: 4 additions & 0 deletions test/1.2-Tests/3-Types/5-String/2-Syntax/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
add_subdirectory(1-IgnoreContinuation)
add_subdirectory(2-IgnoreJoins)
add_subdirectory(3-MustHaveClosingQuote)
add_subdirectory(4-IgnoreComments)
2 changes: 2 additions & 0 deletions test/1.2-Tests/3-Types/5-String/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
add_subdirectory(1-Escapes)
add_subdirectory(2-Syntax)
5 changes: 5 additions & 0 deletions test/1.2-Tests/3-Types/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
add_subdirectory(1-Nil)
add_subdirectory(2-Boolean)
add_subdirectory(3-Integer)
add_subdirectory(4-Float)
add_subdirectory(5-String)
Loading

0 comments on commit 47301d8

Please sign in to comment.