harness.check (doformat (cf, 1.5, buf), "Sun");
harness.check (doformat (cf, 5.5, buf), "Thu");
harness.check (doformat (cf, 7.0, buf), "Sat");
harness.check (doformat (cf, 99.5, buf), "Sat");
cf.applyPattern ("-1.0#Less than one|1.0#One|1.0<One to two, exclusive|2.0#Two to three, inclusive|3.0<Over three, up to four|4.0<Four to five, exclusive|5.0#Five and above");
harness.check (doformat (cf, -23, buf), "Less than one");
harness.check (doformat (cf, -.5, buf), "Less than one");
harness.check (doformat (cf, ChoiceFormat.previousDouble (1.0), buf),
"Less than one");
harness.check (doformat (cf, 1.0, buf), "One");