2025 init
This commit is contained in:
35
code/heap/pom.xml
Normal file
35
code/heap/pom.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>fr.istic.vv</groupId>
|
||||
<artifactId>heap</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<maven.compiler.source>11</maven.compiler.source>
|
||||
<maven.compiler.target>11</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>net.jqwik</groupId>
|
||||
<artifactId>jqwik</artifactId>
|
||||
<version>1.3.10</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>2.22.2</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
17
code/heap/src/main/java/fr/istic/vv/BinaryHeap.java
Normal file
17
code/heap/src/main/java/fr/istic/vv/BinaryHeap.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package fr.istic.vv;
|
||||
|
||||
import java.util.Comparator;
|
||||
|
||||
public class BinaryHeap<T> {
|
||||
|
||||
public BinaryHeap(Comparator<T> comparator) { }
|
||||
|
||||
public T pop() { return null; }
|
||||
|
||||
public T peek() { return null; }
|
||||
|
||||
public void push(T element) { }
|
||||
|
||||
public int count() { return 0; }
|
||||
|
||||
}
|
||||
10
code/heap/src/test/java/fr/istic/vv/BinaryHeapTest.java
Normal file
10
code/heap/src/test/java/fr/istic/vv/BinaryHeapTest.java
Normal file
@@ -0,0 +1,10 @@
|
||||
package fr.istic.vv;
|
||||
import net.jqwik.api.*;
|
||||
|
||||
|
||||
public class BinaryHeapTest {
|
||||
@Property
|
||||
boolean absoluteValueOfAllNumbersIsPositive(@ForAll int anInteger) {
|
||||
return Math.abs(anInteger) >= 0;
|
||||
}
|
||||
}
|
||||
BIN
code/heap/target/classes/fr/istic/vv/BinaryHeap.class
Normal file
BIN
code/heap/target/classes/fr/istic/vv/BinaryHeap.class
Normal file
Binary file not shown.
BIN
code/heap/target/test-classes/fr/istic/vv/BinaryHeapTest.class
Normal file
BIN
code/heap/target/test-classes/fr/istic/vv/BinaryHeapTest.class
Normal file
Binary file not shown.
Reference in New Issue
Block a user