Describe the bug
The interpreter is incorrectly stating that the parameter to UCASE (and presumably LCASE) must be a single letter, either string or char.
The specification states:
UCASE()
Returns the string/character with all characters in upper case. The identifier should be of data type string or
char.
To Reproduce
Steps to reproduce the behavior:
Enter this pseudocode
DECLARE Word : STRING
DECLARE UpperCase : STRING
Word <- "Hello"
UpperCase <- UCASE(Word)
OUTPUT UpperCase
However, you get this error:
[line 4] Runtime error: UCASE() argument should be of type CHAR
Expected behavior
This should evaluate correctly and there should not be an error reported
Describe the bug
The interpreter is incorrectly stating that the parameter to UCASE (and presumably LCASE) must be a single letter, either string or char.
The specification states:
UCASE()
Returns the string/character with all characters in upper case. The identifier should be of data type string or
char.
To Reproduce
Steps to reproduce the behavior:
Enter this pseudocode
DECLARE Word : STRING
DECLARE UpperCase : STRING
Word <- "Hello"
UpperCase <- UCASE(Word)
OUTPUT UpperCase
However, you get this error:
[line 4] Runtime error: UCASE() argument should be of type CHAR
Expected behavior
This should evaluate correctly and there should not be an error reported