
cmake_minimum_required(VERSION 4.2...4.3)

include ("${RunCMake_SOURCE_DIR}/check_errors.cmake")
unset (errors)

string(TOUPPER "abcd"  reference)
set(output "$<STRING:TOUPPER,abcd>")
if (NOT output STREQUAL reference)
  list (APPEND errors "<STRING:TOUPPER,abcd> returns bad data: ${output}")
endif()

string(TOUPPER "ABCD"  reference)
set(output "$<STRING:TOUPPER,ABCD>")
if (NOT output STREQUAL reference)
  list (APPEND errors "<STRING:TOUPPER,ABCD> returns bad data: ${output}")
endif()

string(TOUPPER "abcdABCD12@!"  reference)
set(output "$<STRING:TOUPPER,abcdABCD12@!>")
if (NOT output STREQUAL reference)
  list (APPEND errors "<STRING:TOUPPER,abcdABCD12@!> returns bad data: ${output}")
endif()


check_errors("STRING:TOUPPER" ${errors})
