-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Morten Haraldsen
committed
Sep 12, 2024
1 parent
64bfbbb
commit 7240712
Showing
3 changed files
with
31 additions
and
2 deletions.
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
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
25 changes: 25 additions & 0 deletions
25
src/test/java/com/ethlo/time/statistics/ThroughputPerformanceStatisticsTest.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,25 @@ | ||
package com.ethlo.time.statistics; | ||
|
||
import com.ethlo.util.IndexedCollection; | ||
import com.ethlo.util.IndexedCollectionStatistics; | ||
|
||
import com.ethlo.util.LongList; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import java.time.Duration; | ||
|
||
import static org.junit.jupiter.api.Assertions.*; | ||
|
||
class ThroughputPerformanceStatisticsTest | ||
{ | ||
|
||
@Test | ||
void getStandardDeviation() | ||
{ | ||
final IndexedCollection<Long> list = new LongList(1000); | ||
list.add(123); | ||
final ThroughputPerformanceStatistics stats = new ThroughputPerformanceStatistics(new IndexedCollectionStatistics(list), 5, Duration.ofMillis(456)); | ||
stats.getStandardDeviation(); | ||
} | ||
} |