String
Background
Section titled “Background”Given a file named “pen.json” with:
{ "type": "library", "dependencies": {}}Use a string literal
Section titled “Use a string literal”Given a file named “Foo.pen” with:
f = \() string { "foo"}When I run pen build
Then the exit status should be 0.
Use equality operators
Section titled “Use equality operators”Given a file named “Foo.pen” with:
f = \() boolean { "" == ""}
g = \() boolean { "" != ""}When I run pen build
Then the exit status should be 0.
Concatenate strings
Section titled “Concatenate strings”Given a file named “Foo.pen” with:
f = \() string { "foo" + "bar"}When I run pen build
Then the exit status should be 0.
Concatenate 3 strings
Section titled “Concatenate 3 strings”Given a file named “Foo.pen” with:
f = \() string { "foo" + "bar" + "baz"}When I run pen build
Then the exit status should be 0.