updated test files

to float
This commit is contained in:
buzz-lightsnack-2007 2024-02-27 16:59:45 +08:00
parent b077cbf9ed
commit bc51ba83fd

View file

@ -18,24 +18,24 @@ public class data_test {
/* Fake items. */
Dictionary item_1 = new Hashtable<>();
item_1.put("Name", "No Discount");
item_1.put("Price", (double) 234);
item_1.put("Price", (float) 234);
fake_items.put("13f", item_1);
Dictionary item_2 = new Hashtable<>();
item_2.put("Name", "a Discount");
item_2.put("Price", (double) 15);
item_2.put("Price", (float) 15);
item_2.put("Discount", -2);
item_2.put("Tax", 3);
fake_items.put("13a", item_2);
Dictionary item_3 = new Hashtable<>();
item_3.put("Name", "as Discount");
item_3.put("Price", (double) 104);
item_3.put("Price", (float) 104);
item_3.put("Discount", 95);
fake_items.put("13d", item_3);
Dictionary item_4 = new Hashtable<>();
item_4.put("Price", (double) 144);
item_4.put("Price", (float) 144);
item_4.put("Discount", 0);
fake_items.put("1d", item_4);
}