Adding doxygen style python module desgnation.

Adding another file to example that shows 2 files in same namespace.
This commit is contained in:
Alex Lin
2019-03-14 09:33:50 -05:00
parent 62948308b6
commit 41f151f2ee
4 changed files with 46 additions and 0 deletions

View File

@ -12,6 +12,7 @@ def main():
ball.foo_food.print_me()
ball.foo_inner_food.print_me()
ball.bar_food.print_me()
ball.foo_yummyfood.print_me()
print
# new class from Foo.Food
@ -35,6 +36,13 @@ def main():
bar.fast = trick.Bar.Burger
TRICK_EXPECT_EQ( bar.fast , 1, test_suite , "another first level python namespace" )
# new class from Foo.Food.Inner
yummy = trick.Foo.YummyFood()
yummy.print_me()
TRICK_EXPECT_EQ( yummy.yummy , 1, test_suite , "additional file in same namespace" )
yummy.yummy = trick.Foo.Doughnuts
TRICK_EXPECT_EQ( yummy.yummy , 2, test_suite , "additional file in same namespace" )
if __name__ == "__main__":
main()