Lines Matching refs:cf
28 using cf = std::chars_format; in test() typedef
29 using ut = std::underlying_type<cf>::type; in test()
32 cf x = cf::scientific; in test()
33 x |= cf::fixed; in test()
34 assert(x == cf::general); in test()
37 cf x = cf::general; in test()
38 x &= cf::fixed; in test()
39 assert(x == cf::fixed); in test()
42 cf x = cf::general; in test()
43 x ^= cf::fixed; in test()
44 assert(x == cf::scientific); in test()
47 assert(static_cast<ut>(cf::scientific & (cf::fixed | cf::hex)) == 0); in test()
48 assert(static_cast<ut>(cf::fixed & (cf::scientific | cf::hex)) == 0); in test()
49 assert(static_cast<ut>(cf::hex & (cf::scientific | cf::fixed)) == 0); in test()
51 assert((cf::scientific | cf::fixed) == cf::general); in test()
53 assert(static_cast<ut>(cf::scientific & cf::fixed) == 0); in test()
55 assert((cf::general ^ cf::fixed) == cf::scientific); in test()
57 assert((~cf::hex & cf::general) == cf::general); in test()