resistor is a library for calculating the resistance of a resistor based on the color bands.
```rust use resistor::{ResistorBuilder, ResistorColor};
fn testred4() { let resistor = ResistorBuilder::FourBand { first: ResistorColor::Red, second: ResistorColor::Red, multiplier: ResistorColor::Red, tolerance: ResistorColor::Red, } .build() .unwrap(); asserteq!(resistor.resistance, 2200.0); asserteq!(resistor.tostring(), "Resistor(2200Ω ± 2%)"); } ```