]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/json/test/error.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / json / test / error.cpp
index b551db711c7bfa6dae89d838fc9b1097cde1eb04..dc267159cab6c59f8020738180c5fac695dd79c3 100644 (file)
@@ -51,7 +51,7 @@ public:
         check(condition::parse_error, error::extra_data);
         check(condition::parse_error, error::incomplete);
         check(condition::parse_error, error::exponent_overflow);
-        check(condition::parse_error, error::too_deep);       
+        check(condition::parse_error, error::too_deep);
         check(condition::parse_error, error::illegal_leading_surrogate);
         check(condition::parse_error, error::illegal_trailing_surrogate);
         check(condition::parse_error, error::expected_hex_digit);
@@ -64,8 +64,22 @@ public:
 
         check(condition::assign_error, error::not_number);
         check(condition::assign_error, error::not_exact);
-    
+
+        check(condition::pointer_parse_error, error::missing_slash);
+        check(condition::pointer_parse_error, error::invalid_escape);
+
+        check(condition::pointer_use_error, error::token_not_number);
+        check(condition::pointer_use_error, error::value_is_scalar);
+        check(condition::pointer_use_error, error::not_found);
+        check(condition::pointer_use_error, error::token_overflow);
+        check(condition::pointer_use_error, error::past_the_end);
+
         check(error::test_failure);
+
+        // check std interop
+        std::error_code const ec = error::syntax;
+        BOOST_TEST(ec == error::syntax);
+        BOOST_TEST(ec == condition::parse_error);
     }
 };