Skip to content

Commit

Permalink
Add minor comment to test_Factory.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jslee02 committed Mar 29, 2017
1 parent 9b148c8 commit 5e44e81
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions unittests/unit/test_Factory.cpp
Expand Up @@ -182,7 +182,11 @@ TEST(Factory, VariousCreatorFunctions)

// Default creator
FruitFactory::registerCreator<Apple>("apple");

// Lambda function
FruitFactory::registerCreator(
"banana", []() -> Banana* { return new Banana(); });

// Global static function
FruitFactory::registerCreator("orange", createOrange);
}

0 comments on commit 5e44e81

Please sign in to comment.