Try calling it inside a constructor or calling them from inside a public test method. Remember the publis test method is just for that purpose -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Leif Gruenwoldt Sent: Wednesday, March 22, 2006 11:55 AM To: boost-users@lists.boost.org Subject: [Boost-users] [Unit-Test] How to test private functions Is there a way to test the private functions of a class without moving them into public scope during test? What are some strategies for this? I was hoping to add "friend class boost::unit_test::test_suite;" to my class but that didn't work. -- Leif Gruenwoldt _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users