Skip to content

Commit

Permalink
add tokenizer test
Browse files Browse the repository at this point in the history
  • Loading branch information
YSaxon committed Apr 9, 2024
1 parent 4db354c commit cddc764
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,17 @@ var2 \n
)
set_tests_properties(repl_test_variable_set_to_another PROPERTIES FAIL_REGULAR_EXPRESSION "int var2 = 4")

add_test(NAME repl_test_tokenizer #
COMMAND cliffi --repltest
set var1 \"test string foo\" \n
set var2 a\\ b\\ c \n
${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_SHARED_LIBRARY_PREFIX}cliffi_test${CMAKE_SHARED_LIBRARY_SUFFIX} s concat var1 \" and bar and \\ slash\" \n
print var2 \n
)
set_tests_properties(repl_test_tokenizer PROPERTIES PASS_REGULAR_EXPRESSION "Function returned: \"?test string foo and bar and . slash")
set_tests_properties(repl_test_tokenizer PROPERTIES PASS_REGULAR_EXPRESSION "var2 = \"?a b c")


endif()


Expand Down

0 comments on commit cddc764

Please sign in to comment.