Skip to content

Modules

Given a file named “pen.json” with:

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

Given a file named “Foo.pen” with:

Foo = \() number {
42
}

And a file named “Bar.pen” with:

import 'Foo
Bar = \() number {
Foo'Foo()
}

When I run pen build

Then the exit status should be 0.

Given a file named “Foo.pen” with:

type Foo = number

And a file named “Bar.pen” with:

import 'Foo
type Bar = Foo'Foo

When I run pen build

Then the exit status should be 0.

Given a file named “Foo/Foo.pen” with:

Foo = \() number {
42
}

And a file named “Bar.pen” with:

import 'Foo'Foo
Bar = \() number {
Foo'Foo()
}

When I run pen build

Then the exit status should be 0.

Given a file named “Foo.pen” with:

Foo = \() number {
42
}

And a file named “Bar.pen” with:

import 'Foo as Bar
Bar = \() number {
Bar'Foo()
}

When I run pen build

Then the exit status should be 0.

Given a file named “Foo.pen” with:

type Foo {}

And a file named “Bar.pen” with:

import 'Foo { Foo }
type Bar = Foo

When I run pen build

Then the exit status should be 0.

Given a file named “Foo.pen” with:

type Foo = number

And a file named “Bar.pen” with:

import 'Foo { Foo }
type Bar = Foo

When I run pen build

Then the exit status should be 0.

Given a file named “Foo.pen” with:

Foo = \() number {
42
}

And a file named “Bar.pen” with:

import 'Foo { Foo }
Bar = \() number {
Foo()
}

When I run pen build

Then the exit status should be 0.