mirror of
https://github.com/nasa/trick.git
synced 2025-06-15 13:48:18 +00:00
Adding doxygen style python module desgnation.
Adding another file to example that shows 2 files in same namespace.
This commit is contained in:
@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user