Skip to content

UCASE/LCASE syntax is incorrectly imposed #36

Description

@SASRDCRUZ

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions