diff options
author | Marco Poletti <poletti.marco@gmail.com> | 2016-11-19 09:50:55 +0000 |
---|---|---|
committer | Marco Poletti <poletti.marco@gmail.com> | 2016-11-19 09:50:58 +0000 |
commit | 824579c5da30c273ef7620d44ec22d8d61c5c2ae (patch) | |
tree | edcfa3007220569e056d2dd8299609831a0951b2 /tests/test_normalized_component.py | |
parent | c993c122a406ec802d47418badcc16ee22db406d (diff) | |
download | google-fruit-824579c5da30c273ef7620d44ec22d8d61c5c2ae.tar.gz |
Add an empty main() to the test source code if it doesn't have a main, to make some tests more concise. Also omit the explicit "return 0" in main, since that's added implicitly by the compiler anyway.
Diffstat (limited to 'tests/test_normalized_component.py')
-rwxr-xr-x | tests/test_normalized_component.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/test_normalized_component.py b/tests/test_normalized_component.py index a29f22f..3d5d51c 100755 --- a/tests/test_normalized_component.py +++ b/tests/test_normalized_component.py @@ -66,8 +66,6 @@ int main() { fruit::Injector<X> injector4(normalizedComponent, fruit::Component<X>(fruit::createComponent().bindInstance(x))); injector4.get<X*>(); - - return 0; } ''') @@ -105,8 +103,6 @@ int main() { fruit::Injector<XAnnot> injector4(normalizedComponent, fruit::Component<XAnnot>(fruit::createComponent().bindInstance<XAnnot>(x))); injector4.get<fruit::Annotated<Annotation, X*>>(); - - return 0; } ''') @@ -126,8 +122,6 @@ fruit::Component<fruit::Required<X>> getComponent() { int main() { fruit::NormalizedComponent<fruit::Required<X>> normalizedComponent(getComponent()); fruit::Injector<> injector(normalizedComponent, fruit::Component<>(fruit::createComponent())); - - return 0; } ''') @@ -147,8 +141,6 @@ fruit::Component<fruit::Required<XAnnot>> getComponent() { int main() { fruit::NormalizedComponent<fruit::Required<XAnnot>> normalizedComponent(getComponent()); fruit::Injector<> injector(normalizedComponent, fruit::Component<>(fruit::createComponent())); - - return 0; } ''') @@ -183,7 +175,6 @@ struct X {}; int main() { (void) sizeof(fruit::NormalizedComponent<XAnnot1, XAnnot2>); - return 0; } ''') |