Skip to content
Snippets Groups Projects
Commit 619c9726 authored by Lenard Mollenkopf's avatar Lenard Mollenkopf
Browse files

Update Dec2BinTest.java

parent 8fa14475
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ class Dec2BinTest {
* Zusätzlich wird der Commonfehler, die 0 nicht richtig umzuwandeln, als Special Case einzelt geprüft:
*/
@org.junit.jupiter.api.Test
void convert() {
void convert1() {
// testcases 50,13,64
int[] testcases = {50, 13, 64};
int[][] binOftestcases = {{1, 1, 0, 0, 1, 0}, {1, 1, 0, 1}, {1, 0, 0, 0, 0, 0, 0}};
......@@ -58,7 +58,7 @@ class Dec2BinTest {
// alte Tests wieder hinzugefügt
@org.junit.jupiter.api.Test
void convert() {
void convert2() {
checkBin(0, new int[]{0});
checkBin(42, new int[]{1, 0, 1, 0, 1, 0});
checkBin(2147483647, new int[]{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment