Get Deterministic Outcomes
The Elfie language is built around specifying exactly what the outcomes of any piece of code are. And the compiler is built to enforce those outcomes are true.
fn minify(input: string): `Strips extra space` -> string {
@acceptanceCriteria
.add({
situation = `Input is code`,
behavior = `Preserve spaces in literals`,
});
@test.add({
input = [` remove extra space `],
output = `remove extra space`,
});
}