Skip to content

String

Given a file named “pen.json” with:

{
"type": "library",
"dependencies": {}
}

Given a file named “Foo.pen” with:

f = \() string {
"foo"
}

When I run pen build

Then the exit status should be 0.

Given a file named “Foo.pen” with:

f = \() boolean {
"" == ""
}
g = \() boolean {
"" != ""
}

When I run pen build

Then the exit status should be 0.

Given a file named “Foo.pen” with:

f = \() string {
"foo" + "bar"
}

When I run pen build

Then the exit status should be 0.

Given a file named “Foo.pen” with:

f = \() string {
"foo" + "bar" + "baz"
}

When I run pen build

Then the exit status should be 0.