Lines Matching refs:parse_permille_unbounded
70 TEST(parse_permille_unbounded) { in TEST() argument
71 assert_se(parse_permille_unbounded("1001‰") == 1001); in TEST()
72 assert_se(parse_permille_unbounded("4000‰") == 4000); in TEST()
73 assert_se(parse_permille_unbounded("2147483647‰") == 2147483647); in TEST()
74 assert_se(parse_permille_unbounded("2147483648‰") == -ERANGE); in TEST()
75 assert_se(parse_permille_unbounded("4294967295‰") == -ERANGE); in TEST()
76 assert_se(parse_permille_unbounded("4294967296‰") == -ERANGE); in TEST()
78 assert_se(parse_permille_unbounded("101%") == 1010); in TEST()
79 assert_se(parse_permille_unbounded("400%") == 4000); in TEST()
80 assert_se(parse_permille_unbounded("214748364.7%") == 2147483647); in TEST()
81 assert_se(parse_permille_unbounded("214748364.8%") == -ERANGE); in TEST()
82 assert_se(parse_permille_unbounded("429496729.5%") == -ERANGE); in TEST()
83 assert_se(parse_permille_unbounded("429496729.6%") == -ERANGE); in TEST()