Implement rule to remove comments
All checks were successful
Run the tests for a working verification of xtcl. / build (ubuntu-20.04) (push) Successful in 41s
All checks were successful
Run the tests for a working verification of xtcl. / build (ubuntu-20.04) (push) Successful in 41s
This commit is contained in:
@@ -73,9 +73,9 @@ fn test_remove_comments() {
|
||||
let testcase_2: &str = ";#replace_this\n";
|
||||
let verify_1: &str = "test#noreplacement";
|
||||
let verify_2: &str = ";";
|
||||
let case_1: &str = comments(testcase_1).as_str();
|
||||
let case_2: &str = comments(testcase_2).as_str();
|
||||
let case_1: String = comments(testcase_1);
|
||||
let case_2: String = comments(testcase_2);
|
||||
|
||||
assert_eq!(verify_1, case_1);
|
||||
assert_eq!(verify_2, case_2);
|
||||
assert_eq!(verify_1, case_1.as_str());
|
||||
assert_eq!(verify_2, case_2.as_str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user