Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adicionado o teste no método sort #10

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ buildNumber.properties
.factorypath
.project
.vscode/
.history
13 changes: 12 additions & 1 deletion src/test/java/edu/ifrs/vvs/AppTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,33 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package edu.ifrs.vvs;

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;


/**
* Unit test for simple App.
*/
class AppTest {
private BubbleSort obj = new BubbleSort();
/**
* Rigorous Test.
*/
@Test
void testApp() {
assertEquals(1, 1);
}

@Test
void testSort(){
int[] v1 = {1,3,2,5,4};
int[] v2 = {1,2,3,4,5};

this.obj.sort(v1);
assertArrayEquals(v1, v2);
}
}