221-fix-classes-without-__init__-should-be-valid #304
|
@ -125,6 +125,7 @@ fn test_simple_register(source: Vec<&str>) {
|
||||||
class A:
|
class A:
|
||||||
def foo(self):
|
def foo(self):
|
||||||
pass
|
pass
|
||||||
|
a = A()
|
||||||
"};
|
"};
|
||||||
"register"
|
"register"
|
||||||
)]
|
)]
|
||||||
|
@ -132,7 +133,7 @@ fn test_simple_register_without_constructor(source: &str) {
|
||||||
let mut composer: TopLevelComposer = Default::default();
|
let mut composer: TopLevelComposer = Default::default();
|
||||||
let ast = parse_program(source, Default::default()).unwrap();
|
let ast = parse_program(source, Default::default()).unwrap();
|
||||||
let ast = ast[0].clone();
|
let ast = ast[0].clone();
|
||||||
|
|||||||
composer.register_top_level(ast, None, "".into(), false).unwrap();
|
composer.register_top_level(ast, None, "".into(), true).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test_case(
|
#[test_case(
|
||||||
|
|
Loading…
Reference in New Issue
Shouldn't it be
true
?