Lines Matching refs:cf
30 using cf = std::chars_format; in test() typedef
31 using ut = std::underlying_type<cf>::type; in test()
34 cf x = cf::scientific; in test()
35 x |= cf::fixed; in test()
36 assert(x == cf::general); in test()
39 cf x = cf::general; in test()
40 x &= cf::fixed; in test()
41 assert(x == cf::fixed); in test()
44 cf x = cf::general; in test()
45 x ^= cf::fixed; in test()
46 assert(x == cf::scientific); in test()
49 assert(static_cast<ut>(cf::scientific & (cf::fixed | cf::hex)) == 0); in test()
50 assert(static_cast<ut>(cf::fixed & (cf::scientific | cf::hex)) == 0); in test()
51 assert(static_cast<ut>(cf::hex & (cf::scientific | cf::fixed)) == 0); in test()
53 assert((cf::scientific | cf::fixed) == cf::general); in test()
55 assert(static_cast<ut>(cf::scientific & cf::fixed) == 0); in test()
57 assert((cf::general ^ cf::fixed) == cf::scientific); in test()
59 assert((~cf::hex & cf::general) == cf::general); in test()