Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
tolstosup authored Sep 27, 2024
1 parent 6dacaf4 commit c18867c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Lab2CPP/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ add_executable(Lab2CPP lab2.cpp)
target_include_directories(Lab2CPP PUBLIC ../LibraryCPP)
target_link_libraries(Lab2CPP LibraryCPP)

add_test(NAME Test1 COMMAND Lab2CPP 1+2*3)
add_test(NAME Test2 COMMAND Lab2CPP (1+2)*3)
add_test(NAME Test1 COMMAND Lab2CPP "1+2*3")
add_test(NAME Test2 COMMAND Lab2CPP "(1+2)*3")

set_tests_properties(Test1 PROPERTIES PASS_REGULAR_EXPRESSION 7)
set_tests_properties(Test2 PROPERTIES PASS_REGULAR_EXPRESSION 9)
set_tests_properties(Test1 PROPERTIES PASS_REGULAR_EXPRESSION "7")
set_tests_properties(Test2 PROPERTIES PASS_REGULAR_EXPRESSION "9")

0 comments on commit c18867c

Please sign in to comment.