Literal Values
fitSharp
Literal Values
We can use Literal Values to specify a constant value, wherever Method Execution is used. A literal value is a cell with a type specifier followed by a cell with the constant value.

when input is
story test fixture
checkplain testshow boolean: yes
show byte: 255
show character: a
show decimal: 1.234567890123456789012345678
show double: 1.23456789012345
show float: 1.234567
show integer: 2147483647
show long: 9223372036854775807
show short: 32767
show string: mystringvalue
show boolean: yes True
show byte: 255 255
show character: a a
show decimal: 1.234567890123456789012345678 1.234567890123456789012345678
show double: 1.23456789012345 1.23456789012345
show float: 1.234567 1.234567
show integer: 2147483647 2147483647
show long: 9223372036854775807 9223372036854775807
show short: 32767 32767
show string: mystringvalue mystringvalue
show boolean: yes
show byte: 255
show character: a
show decimal: 1.234567890123456789012345678
show double: 1.23456789012345
show float: 1.234567
show integer: 2147483647
show long: 9223372036854775807
show short: 32767
show string: mystringvalue
then output is
show boolean: yes True
show byte: 255 255
show character: a a
show decimal: 1.234567890123456789012345678 1.234567890123456789012345678
show double: 1.23456789012345 1.23456789012345
show float: 1.234567 1.234567
show integer: 2147483647 2147483647
show long: 9223372036854775807 9223372036854775807
show short: 32767 32767
show string: mystringvalue mystringvalue

For example, we can assign constants to Symbol Values.

when input is
story test fixture
checkplain testname mysymbol string: abc
with mysymbol
check length 3
name mysymbol string: abc
with mysymbol
check length 3
name mysymbol string: abc
with mysymbol
check length 3
then output is
name mysymbol string: abc
with mysymbol
check length 3
Copyright © 2022 Syterra Software Inc. All rights reserved.