Skip to content

Commit 513f9fd

Browse files
Merge pull request #339 from GraphBLAS/v1.2
V1.2: cleanup for FastAssign, test for SwapEdges
2 parents d9ae471 + 8864f8f commit 513f9fd

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

experimental/test/test_SwapEdges.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ void test_SwapEdges (void)
123123
//------------------------------------------------------------------
124124
// check results
125125
//------------------------------------------------------------------
126+
// Check sufficient swaps were performed.
127+
TEST_CHECK (pQ >= 100.0) ;
126128
//Make sure we got a symetric back out:
127129
OK (LAGraph_CheckGraph (G_new, msg)) ;
128130

@@ -305,6 +307,8 @@ void test_SwapEdges_brutal (void)
305307
//------------------------------------------------------------------
306308
// check results
307309
//------------------------------------------------------------------
310+
// Check sufficient swaps were performed.
311+
TEST_CHECK (pQ >= 1.0) ;
308312
//Make sure we got a symetric back out:
309313
LG_BRUTAL_BURBLE (LAGraph_CheckGraph (G_new, msg)) ;
310314

experimental/utility/LAGraph_FastAssign.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ int LAGraph_FastAssign_Semiring
161161
void *ramp_a = NULL, *i_a =NULL;
162162
int ramp_h = GrB_DEFAULT, trsp = GrB_DEFAULT, i_h = GrB_DEFAULT;
163163
uint64_t ramp_n = 0, ramp_size = 0, i_n = 0, i_size= 0;
164-
GrB_Type x_type = NULL, i_type = NULL, ramp_type = NULL;
165-
int32_t iso = false;
164+
GrB_Type i_type = NULL, ramp_type = NULL;
166165
//----------------------------------------------------------------------
167166
// Check inputs
168167
//----------------------------------------------------------------------
@@ -191,10 +190,6 @@ int LAGraph_FastAssign_Semiring
191190
GRB_TRY (GrB_Vector_size(&nrows, c)) ;
192191
}
193192

194-
GRB_TRY (GrB_Vector_get_INT32(X_vec, &iso, GxB_ISO)) ;
195-
196-
GRB_TRY (GxB_Vector_type(&x_type, X_vec));
197-
198193
//----------------------------------------------------------------------
199194
// Load up containers
200195
//----------------------------------------------------------------------

0 commit comments

Comments
 (0)