mod common;
#[test]
fn empty_program() {
common::test_program(
"
", "",
);
}
#[test]
fn prefix_newlines() {
common::test_program(
"
a = 2
print a
",
"2\n",
);
}
#[test]
fn infix_newlines() {
common::test_program(
"a = 2
print a
",
"2\n",
);
}
#[test]
fn comment_on_own_line() {
common::test_program(
"
print 2
// comment
",
"2\n",
);
}