| 674 | // test_queries --------------------------------------------------------------------// |
| 675 | |
| 676 | void test_queries() |
| 677 | { |
| 678 | std::cout << "testing queries..." << std::endl; |
| 679 | |
| 680 | path p1(""); |
| 681 | path p2("//netname/foo.doo"); |
| 682 | |
| 683 | CHECK(p1.empty()); |
| 684 | CHECK(!p1.has_root_path()); |
| 685 | CHECK(!p1.has_root_name()); |
| 686 | CHECK(!p1.has_root_directory()); |
| 687 | CHECK(!p1.has_relative_path()); |
| 688 | CHECK(!p1.has_parent_path()); |
| 689 | CHECK(!p1.has_filename()); |
| 690 | CHECK(!p1.has_stem()); |
| 691 | CHECK(!p1.has_extension()); |
| 692 | CHECK(!p1.is_absolute()); |
| 693 | CHECK(p1.is_relative()); |
| 694 | |
| 695 | CHECK(!p2.empty()); |
| 696 | CHECK(p2.has_root_path()); |
| 697 | CHECK(p2.has_root_name()); |
| 698 | CHECK(p2.has_root_directory()); |
| 699 | CHECK(p2.has_relative_path()); |
| 700 | CHECK(p2.has_parent_path()); |
| 701 | CHECK(p2.has_filename()); |
| 702 | CHECK(p2.has_stem()); |
| 703 | CHECK(p2.has_extension()); |
| 704 | CHECK(p2.is_absolute()); |
| 705 | CHECK(!p2.is_relative()); |
| 706 | |
| 707 | } |
| 708 | |
| 709 | // test_imbue_locale ---------------------------------------------------------------// |
| 710 | |