| 839 | // test_queries --------------------------------------------------------------------// |
| 840 | |
| 841 | void test_queries() |
| 842 | { |
| 843 | std::cout << "testing queries..." << std::endl; |
| 844 | |
| 845 | path p1(""); |
| 846 | path p2("//netname/foo.doo"); |
| 847 | |
| 848 | CHECK(p1.empty()); |
| 849 | CHECK(!p1.has_root_path()); |
| 850 | CHECK(!p1.has_root_name()); |
| 851 | CHECK(!p1.has_root_directory()); |
| 852 | CHECK(!p1.has_relative_path()); |
| 853 | CHECK(!p1.has_parent_path()); |
| 854 | CHECK(!p1.has_filename()); |
| 855 | CHECK(!p1.has_stem()); |
| 856 | CHECK(!p1.has_extension()); |
| 857 | CHECK(!p1.is_absolute()); |
| 858 | CHECK(p1.is_relative()); |
| 859 | |
| 860 | CHECK(!p2.empty()); |
| 861 | CHECK(p2.has_root_path()); |
| 862 | CHECK(p2.has_root_name()); |
| 863 | CHECK(p2.has_root_directory()); |
| 864 | CHECK(p2.has_relative_path()); |
| 865 | CHECK(p2.has_parent_path()); |
| 866 | CHECK(p2.has_filename()); |
| 867 | CHECK(p2.has_stem()); |
| 868 | CHECK(p2.has_extension()); |
| 869 | CHECK(p2.is_absolute()); |
| 870 | CHECK(!p2.is_relative()); |
| 871 | } |
| 872 | |
| 873 | // test_imbue_locale ---------------------------------------------------------------// |
| 874 |
no test coverage detected