Others

Run Cloe with an empty source

Given a file named “main.cloe” with:


When I successfully run cloe main.cloe

Then the stdout should contain exactly “”.

Read a source from stdin

Given a file named “main.cloe” with:

(print "Hello, world!")

When I run the following script:

cloe < main.cloe

Then the stdout should contain exactly “Hello, world!”.

Run Cloe script with shebang

Given a file named “main.cloe” with mode “0755” and with:

#!/usr/bin/env cloe

(print "Hello, world!")

When I successfully run sh -c ./main.cloe

Then the stdout should contain exactly “Hello, world!”.