mirror of
https://bitbucket.org/Mattrixwv/javaclasses.git
synced 2025-12-06 15:03:58 -05:00
Updated sonarqube findings
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
//JavaClasses/src/test/java/mattrixwv/TestStringAlgorithms.java
|
||||
//Matthew Ellison
|
||||
// Created: 07-03-21
|
||||
//Modified: 10-11-21
|
||||
//Modified: 06-25-22
|
||||
//This class contains tests for my number algorithms
|
||||
/*
|
||||
Copyright (C) 2021 Matthew Ellison
|
||||
Copyright (C) 2022 Matthew Ellison
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
@@ -26,6 +26,7 @@ import static org.junit.Assert.assertEquals;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -36,7 +37,7 @@ public class TestStringAlgorithms{
|
||||
//Test 1
|
||||
String permString = "012";
|
||||
ArrayList<String> correctAnswer = new ArrayList<String>(Arrays.asList("012", "021", "102", "120", "201", "210"));
|
||||
ArrayList<String> answer = StringAlgorithms.getPermutations(permString);
|
||||
List<String> answer = StringAlgorithms.getPermutations(permString);
|
||||
assertEquals("getPermutations failed", correctAnswer, answer);
|
||||
}
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user