Cleaning language
This commit is contained in:
@@ -11,8 +11,8 @@ fn whitespace_only() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn unknown_word() {
|
||||
expect_error("foobar", "unknown word");
|
||||
fn unknown_word_becomes_string() {
|
||||
expect_str("foobar", "foobar");
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -22,12 +22,12 @@ fn string_not_number() {
|
||||
|
||||
#[test]
|
||||
fn comment_ignored() {
|
||||
expect_int("1 (this is a comment) 2 +", 3);
|
||||
expect_int("1 ;; this is a comment\n2 +", 3);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn multiline_comment() {
|
||||
expect_int("1 (multi\nline\ncomment) 2 +", 3);
|
||||
expect_int("1 ;; first comment\n;; entire line comment\n2 +", 3);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user