Number
Background
Given a file named "pen.json" with:
{
"type": "library",
"dependencies": {}
}
Use a number literal
Given a file named "Foo.pen" with:
f = \() number {
42
}
When I run pen build
Then the exit status should be 0.
Use arithmetic operators
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.
Use equality operators
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.
Use order operators
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.