diff --git a/readme.md b/readme.md index 18ffa72..7278e60 100644 --- a/readme.md +++ b/readme.md @@ -17,39 +17,29 @@ See [usage](docs/usage.md) for requirements, installation instructions and a usa ## Table of Contents - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + +
Vitamins A-M Vitamins N-Z Printed Utilities Core Utilities
Ball_bearings Nuts Box Annotation Bom
Batteries O_ring Butt_box Bezier Clip
Belts Opengrab Cable_grommets Dogbones Global
Blowers Pcb Carriers Fillet Polyholes
Bulldogs Pcbs Corner_block Hanging_hole Rounded_rectangle
Buttons Pillars Door_hinge Layout Sphere
Cable_strips Pin_headers Door_latch Maths Teardrops
Components Psus Fan_guard Offset
D_connectors Pulleys Fixing_block Quadrant
Displays Rails Flat_hinge Round
Extrusion_brackets Ring_terminals Foot Rounded_cylinder
Extrusions Rockers Handle Rounded_polygon
Fans Rod Pcb_mount Sector
Fuseholder Screws Printed_box Sweep
Geared_steppers Scs_bearing_blocks Psu_shroud Thread
Green_terminals Sealing_strip Ribbon_clamp Tube
Hot_ends Sheets Screw_knob
Hygrometer Sk_brackets Socket_box
Iecs Spades Ssr_shroud
Inserts Spools Strap_handle
Jack Springs
Kp_pillow_blocks Ssrs
Ldrs Stepper_motors
Leadnuts Toggles
Leds Transformers
Light_strips Tubings
Linear_bearings Variacs
Mains_sockets Veroboard
Meter Washers
Microswitches Wire
Microview Zipties
Modules
Vitamins A-J Vitamins K-Q Vitamins R-Z Printed Utilities Core Utilities
Ball_bearings Kp_pillow_blocks Rails Box Annotation Bom
Batteries Ldrs Ring_terminals Butt_box Bezier Clip
Belts Leadnuts Rockers Cable_grommets Dogbones Global
Blowers Leds Rod Carriers Fillet Polyholes
Bulldogs Light_strips Screws Corner_block Hanging_hole Rounded_rectangle
Buttons Linear_bearings Scs_bearing_blocks Door_hinge Layout Sphere
Cable_strips Mains_sockets Sealing_strip Door_latch Maths Teardrops
Components Meter Sheets Fan_guard Offset
D_connectors Microswitches Sk_brackets Fixing_block Quadrant
Displays Microview Spades Flat_hinge Round
Extrusion_brackets Modules Spools Foot Rounded_cylinder
Extrusions Nuts Springs Handle Rounded_polygon
Fans O_ring Ssrs Pcb_mount Sector
Fuseholder Opengrab Stepper_motors Printed_box Sweep
Geared_steppers Pcb Toggles Psu_shroud Thread
Green_terminals Pcbs Transformers Ribbon_clamp Tube
Hot_ends Pillars Tubings Screw_knob
Hygrometer Pin_headers Variacs Socket_box
Iecs Psus Veroboard Ssr_shroud
Inserts Pulleys Washers Strap_handle
Jack Wire
Zipties
--- diff --git a/scripts/tests.py b/scripts/tests.py index 4bd45b0..ac2a4a8 100755 --- a/scripts/tests.py +++ b/scripts/tests.py @@ -140,11 +140,14 @@ def tests(tests): print("Can't find implementation!") continue - vsplit = "M" + vsplit = "AKR" + chr(ord('Z') + 1) vtype = locations[0][1] - types = [vtype + ' A-' + vsplit[0], vtype + ' ' + chr(ord(vsplit) + 1) + '-Z'] + [loc[1] for loc in locations[1 :]] + types = [vtype + ' ' + vsplit[i] + '-' + chr(ord(vsplit[i + 1]) - 1) for i in range(len(vsplit) - 1)] + [loc[1] for loc in locations[1 :]] if type == vtype: - type = types[0] if cap_name[0] <= vsplit else types[1] + for i in range(1, len(vsplit)): + if cap_name[0] < vsplit[i]: + type = types[i - 1] + break for t in types: if not t in bodies: