-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add camshaft angle PIDs for 1.75tbi
- Loading branch information
1 parent
c8628d8
commit 07e924a
Showing
3 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/test/java/org/obd/metrics/codec/giulietta_qv_med17_3_1/CamshaftActualAngleTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.obd.metrics.codec.giulietta_qv_med17_3_1; | ||
|
||
import org.junit.jupiter.params.ParameterizedTest; | ||
import org.junit.jupiter.params.provider.CsvSource; | ||
|
||
public class CamshaftActualAngleTest implements Giulietta_QV_Med_17_3_1_Test { | ||
|
||
@ParameterizedTest | ||
@CsvSource(value = { | ||
"62196D0000=00", | ||
"62196D0A00=20", | ||
"62196D09D0=19.60" | ||
}, delimiter = '=') | ||
public void parameterizedTest(String input, String expected) { | ||
assertEquals(input, Double.parseDouble(expected)); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/test/java/org/obd/metrics/codec/giulietta_qv_med17_3_1/CamshaftDesiredAngleTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.obd.metrics.codec.giulietta_qv_med17_3_1; | ||
|
||
import org.junit.jupiter.params.ParameterizedTest; | ||
import org.junit.jupiter.params.provider.CsvSource; | ||
|
||
public class CamshaftDesiredAngleTest implements Giulietta_QV_Med_17_3_1_Test { | ||
|
||
@ParameterizedTest | ||
@CsvSource(value = { | ||
"62196C0000=00", | ||
"62196C0A00=20", | ||
"62196C09D0=19.60" | ||
}, delimiter = '=') | ||
public void parameterizedTest(String input, String expected) { | ||
assertEquals(input, Double.parseDouble(expected)); | ||
} | ||
} |