Lines Matching refs:custom_real
28 constexpr real_parser<real_concept, real_policies<real_concept> > custom_real; in main() local
31 BOOST_SPIRIT_ASSERT_CONSTEXPR_CTORS(custom_real); in main()
33 BOOST_TEST(test("-1234", custom_real)); in main()
34 BOOST_TEST(test_attr("-1234", custom_real, d) && compare(d, -1234)); in main()
36 BOOST_TEST(test("-1.2e3", custom_real)); in main()
37 BOOST_TEST(test_attr("-1.2e3", custom_real, d) && compare(d, -1.2e3)); in main()
39 BOOST_TEST(test("+1.2e3", custom_real)); in main()
40 BOOST_TEST(test_attr("+1.2e3", custom_real, d) && compare(d, 1.2e3)); in main()
42 BOOST_TEST(test("-0.1", custom_real)); in main()
43 BOOST_TEST(test_attr("-0.1", custom_real, d) && compare(d, -0.1)); in main()
45 BOOST_TEST(test("-1.2e-3", custom_real)); in main()
46 BOOST_TEST(test_attr("-1.2e-3", custom_real, d) && compare(d, -1.2e-3)); in main()
48 BOOST_TEST(test("-1.e2", custom_real)); in main()
49 BOOST_TEST(test_attr("-1.e2", custom_real, d) && compare(d, -1.e2)); in main()
51 BOOST_TEST(test("-.2e3", custom_real)); in main()
52 BOOST_TEST(test_attr("-.2e3", custom_real, d) && compare(d, -.2e3)); in main()
54 BOOST_TEST(test("-2e3", custom_real)); in main()
55 BOOST_TEST(test_attr("-2e3", custom_real, d) && compare(d, -2e3)); in main()
57 BOOST_TEST(!test("-e3", custom_real)); in main()
58 BOOST_TEST(!test_attr("-e3", custom_real, d)); in main()
60 BOOST_TEST(!test("-1.2e", custom_real)); in main()
61 BOOST_TEST(!test_attr("-1.2e", custom_real, d)); in main()
69 custom_real n; in main()