forked from Bears-R-Us/arkouda
-
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.
Bears-R-Us#3463 deprecate summarization_test.py (Bears-R-Us#3591)
Co-authored-by: Amanda Potts <ajpotts@users.noreply.github.com>
- Loading branch information
Showing
3 changed files
with
39 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import numpy as np | ||
import pytest | ||
|
||
import arkouda as ak | ||
|
||
|
||
""" | ||
Encapsulates unit tests for the pdarrayclass module that provide | ||
summarized values via reduction methods | ||
""" | ||
|
||
|
||
class TestSummarization: | ||
|
||
@classmethod | ||
def setup_class(cls): | ||
cls.na = np.linspace(1, 10, 10) | ||
cls.pda = ak.array(cls.na) | ||
|
||
def testStd(self): | ||
assert self.na.std() == self.pda.std() | ||
|
||
def testMin(self): | ||
assert self.na.min() == self.pda.min() | ||
|
||
def testMax(self): | ||
assert self.na.max() == self.pda.max() | ||
|
||
def testMean(self): | ||
assert self.na.mean() == self.pda.mean() | ||
|
||
def testVar(self): | ||
assert self.na.var() == self.pda.var() | ||
|
||
def testAny(self): | ||
assert self.na.any() == self.pda.any() | ||
|
||
def testAll(self): | ||
assert self.na.all() == self.pda.all() |
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
File renamed without changes.