function gbtest113
%GBTEST113 test ones and eq

% SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved.
% SPDX-License-Identifier: Apache-2.0

rng ('default') ;

ok = true ;
try
    C1 = GrB.ones (5, 6, 'double', 'by row') ; %#ok<NASGU>
    ok = false ;
catch me
    fprintf ('error expected: %s\n', me.message) ;
end
assert (ok) ;

try
    C1 = GrB.ones (5, 6, 'like') ; %#ok<NASGU>
    ok = false ;
catch me
    fprintf ('error expected: %s\n', me.message) ;
end
assert (ok) ;

A = magic (5) ;
A (1,2) = 0 ;
G = GrB (A, 'by row') ;
C1 = (0 == A) ;
C2 = (0 == G) ;
assert (isequal (C1, C2)) ;

fprintf ('\ngbtest113: all tests passed\n') ;


