Skip to content

Number

Given a file named “pen.json” with:

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

Given a file named “Foo.pen” with:

f = \() number {
42
}

When I run pen build

Then the exit status should be 0.

Given a file named “Foo.pen” with:

f = \() number {
1 + 2 - 3 * 4 / 5
}

When I run pen build

Then the exit status should be 0.

Given a file named “Foo.pen” with:

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

When I run pen build

Then the exit status should be 0.

Given a file named “Foo.pen” with:

f = \() boolean {
0 < 0
}
g = \() boolean {
0 <= 0
}
h = \() boolean {
0 > 0
}
i = \() boolean {
0 >= 0
}

When I run pen build

Then the exit status should be 0.