221-fix-classes-without-__init__-should-be-valid #304

Merged
sb10q merged 8 commits from 221-fix-classes-without-__init__-should-be-valid into master 2022-07-07 10:36:25 +08:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit f9b7f28870 - Show all commits

View File

@ -125,6 +125,7 @@ fn test_simple_register(source: Vec<&str>) {
class A:
def foo(self):
pass
a = A()
"};
"register"
)]
@ -132,7 +133,7 @@ fn test_simple_register_without_constructor(source: &str) {
let mut composer: TopLevelComposer = Default::default();
let ast = parse_program(source, Default::default()).unwrap();
let ast = ast[0].clone();
Review

Shouldn't it be true?

Shouldn't it be ``true``?
composer.register_top_level(ast, None, "".into(), false).unwrap();
composer.register_top_level(ast, None, "".into(), true).unwrap();
}
#[test_case(