From 007b0f300c702275f0578ed0c20d51dd28e504b7 Mon Sep 17 00:00:00 2001 From: Beman Dawes Date: Fri, 29 Aug 2003 12:18:31 +0000 Subject: [PATCH] Initial commit [SVN r19856] --- test/default_name_check_test.cpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 test/default_name_check_test.cpp diff --git a/test/default_name_check_test.cpp b/test/default_name_check_test.cpp new file mode 100644 index 0000000..d474446 --- /dev/null +++ b/test/default_name_check_test.cpp @@ -0,0 +1,27 @@ +// default_name_check_test program ------------------------------------------// + +// (C) Copyright Beman Dawes 2003. Permission to copy, +// use, modify, sell and distribute this software is granted provided this +// copyright notice appears in all copies. This software is provided "as is" +// without express or implied warranty, and with no claim as to its +// suitability for any purpose. + +// See http://www.boost.org for most recent version including documentation. + +#include +#include + +namespace fs = boost::filesystem; +using boost::filesystem::path; + +#include + +int test_main( int, char*[] ) +{ + BOOST_TEST( path::default_name_check_writable() ); + path::default_name_check( fs::no_check ); + BOOST_TEST( !path::default_name_check_writable() ); + BOOST_TEST( path::default_name_check() == fs::no_check ); + return 0; +} +