Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs1-24fa
project05
Commits
c80c392a
Commit
c80c392a
authored
7 months ago
by
Antonio M. Caceres
Browse files
Options
Download
Email Patches
Plain Diff
Rename test_ref on generated matrices.
parent
3eaa4952
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests.json
+1
-1
tests.json
tests/3.gaussian_elimination/test_ref.py
+1
-1
tests/3.gaussian_elimination/test_ref.py
with
2 additions
and
2 deletions
+2
-2
tests.json
View file @
c80c392a
{
"0.elements"
:
{
"test_get_all_atoms.py"
:
[
"test_get_all_atoms"
],
"test_grams_to_mols.py"
:
[
"test_grams_to_mols"
],
"test_molar_mass.py"
:
[
"test_molar_mass"
]},
"1.balancing"
:
{
"test_balance.py"
:
[
"test_check_balance_equation"
],
"test_make_atom_vector.py"
:
[
"test_make_atom_vector"
],
"test_make_compound_matrix.py"
:
[
"test_make_compound_matrix"
],
"test_make_dictionary_solution.py"
:
[
"test_make_dictionary_solution"
],
"test_make_dummy_equation.py"
:
[
"test_make_dummy_equation"
],
"test_make_system_of_equations.py"
:
[
"test_make_system_of_equations"
],
"test_scale_solution.py"
:
[
"test_scale_solution"
]},
"2.matrix_operations"
:
{
"test_negate_matrix.py"
:
[
"test_negate_matrix"
],
"test_transpose_matrix.py"
:
[
"test_transpose_matrix"
]},
"3.gaussian_elimination"
:
{
"test_back_substitute.py"
:
[
"test_back_substitute"
],
"test_gaussian_elimination.py"
:
[
"test_gaussian_elimination"
],
"test_pivot_matrix.py"
:
[
"test_pivot_matrix"
],
"test_ref.py"
:
[
"test_ref_zero_row"
,
"test_ref"
],
"test_scale_matrix.py"
:
[
"test_scale_matrix"
]},
"4.limiting_reactant"
:
{
"test_limiting_reactant.py"
:
[
"test_limiting_reactant"
],
"test_ratio.py"
:
[
"test_ratio"
]},
"5.theoretical_yield"
:
{
"test_theoretical_yield.py"
:
[
"test_theoretical_yield"
]}}
{
"0.elements"
:
{
"test_get_all_atoms.py"
:
[
"test_get_all_atoms"
],
"test_grams_to_mols.py"
:
[
"test_grams_to_mols"
],
"test_molar_mass.py"
:
[
"test_molar_mass"
]},
"1.balancing"
:
{
"test_balance.py"
:
[
"test_check_balance_equation"
],
"test_make_atom_vector.py"
:
[
"test_make_atom_vector"
],
"test_make_compound_matrix.py"
:
[
"test_make_compound_matrix"
],
"test_make_dictionary_solution.py"
:
[
"test_make_dictionary_solution"
],
"test_make_dummy_equation.py"
:
[
"test_make_dummy_equation"
],
"test_make_system_of_equations.py"
:
[
"test_make_system_of_equations"
],
"test_scale_solution.py"
:
[
"test_scale_solution"
]},
"2.matrix_operations"
:
{
"test_negate_matrix.py"
:
[
"test_negate_matrix"
],
"test_transpose_matrix.py"
:
[
"test_transpose_matrix"
]},
"3.gaussian_elimination"
:
{
"test_back_substitute.py"
:
[
"test_back_substitute"
],
"test_gaussian_elimination.py"
:
[
"test_gaussian_elimination"
],
"test_pivot_matrix.py"
:
[
"test_pivot_matrix"
],
"test_ref.py"
:
[
"test_ref_zero_row"
,
"test_ref
_large_matrix
"
],
"test_scale_matrix.py"
:
[
"test_scale_matrix"
]},
"4.limiting_reactant"
:
{
"test_limiting_reactant.py"
:
[
"test_limiting_reactant"
],
"test_ratio.py"
:
[
"test_ratio"
]},
"5.theoretical_yield"
:
{
"test_theoretical_yield.py"
:
[
"test_theoretical_yield"
]}}
This diff is collapsed.
Click to expand it.
tests/3.gaussian_elimination/test_ref.py
View file @
c80c392a
...
...
@@ -39,7 +39,7 @@ def test_ref_zero_row():
@
pytest
.
mark
.
parametrize
(
'matrix'
,
apply_names
(
'ref'
,
[
False
],
generate_random_refable_matrices
(
k
=
7
)))
def
test_ref
(
matrix
:
MutableRationalMatrix2D
):
def
test_ref
_large_matrix
(
matrix
:
MutableRationalMatrix2D
):
correct
=
ref_ref
(
matrix
.
mutable
())
out
=
ref
(
matrix
.
mutable
())
assert
correct
==
out
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment