package com.rusefi.test;

import com.rusefi.StimulationInputs;
import com.rusefi.ui.widgets.PotCommand;
import junit.framework.TestCase;
import org.junit.Test;

public class VoltageDividerTest extends TestCase {

    @Test
    public void testR1() {
        assertEquals(2000.0, PotCommand.getR1InVoltageDivider3(1, 5, 10000));

        assertEquals(2040.816326530612, PotCommand.getR1InVoltageDivider3(1, 4.9, 10000));
    }
}