Phase 2 CheckListBox type entry (Rust): KTYPES gains CheckListBox (180x110, phase1) so it is placeable; count test 36 -> 37
This commit is contained in:
1 parent
d3be0782df
commit
c72e4946f1
1 file changed
+8
-1
@@ -157,6 +157,13 @@ pub const KTYPES: &[TypeInfo] = &[
|
||||
def_height: 110,
|
||||
phase1: true,
|
||||
},
|
||||
TypeInfo {
|
||||
key: "CheckListBox",
|
||||
palette_id: "pal_checklistbox",
|
||||
def_width: 180,
|
||||
def_height: 110,
|
||||
phase1: true,
|
||||
},
|
||||
TypeInfo {
|
||||
key: "Menubutton",
|
||||
palette_id: "pal_menubutton",
|
||||
@@ -431,7 +438,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn types_count_and_lookup() {
|
||||
assert_eq!(KTYPES.len(), 36);
|
||||
assert_eq!(KTYPES.len(), 37);
|
||||
assert_eq!(find_type("Button").unwrap().def_width, 100);
|
||||
assert_eq!(find_type("StockChart").unwrap().def_height, 200);
|
||||
assert!(find_type("Nope").is_none());
|
||||
|
||||
Reference in new issue
Block a user