You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is( $s5d->is_partial_hash([]), 0, 'array is not a partial hash');
83
+
is( $s5d->is_partial_hash(''), 0, 'string is not a partial hash');
84
+
is( $s5d->is_partial_hash([]), 0, 'array is not a partial hash');
85
+
is( $s5d->is_partial_hash({}), 0, 'empty hash is not a partial hash');
86
+
is( $s5d->is_partial_hash({gamma=> 1}), 0, 'wrong key for partial hash');
84
87
is( $s5d->is_partial_hash({aleph=> 1, beth=> 2, gimel=> 3, daleth=> 4, he=> 5}), 1, 'valid hash with right keys is also correct partial hash');
85
88
is( $s5d->is_partial_hash({aleph=> 1, beth=> 20, gimel=> 3, daleth=> 4, he=> 5, o=> 6}), 0, 'partial hash can not have more keys than full hash definition');
86
89
is( $s5d->is_partial_hash({aleph=> 1 }), 1, 'valid partial hash to have only one korrect key');
is( ref Graphics::Toolkit::Color::Space::Shape->new( $basis, undef, [[1,2],[1.1,1.2],[1,2]]), $module, 'full ARRAY range with decimals');
32
-
like( Graphics::Toolkit::Color::Space::Shape->new( $basis, undef, [[1,2],[1,2]]), qr/invalid range/, 'not enough elements in range def');
33
-
like( Graphics::Toolkit::Color::Space::Shape->new( $basis, undef, [[1,2],[1,2],[1,2],[1,2]]), qr/invalid range/, 'too many elements in range def');
34
-
like( Graphics::Toolkit::Color::Space::Shape->new( $basis, undef, [[1,2],[2,1],[1,2]]), qr/lower bound/, 'one range def element is backward');
35
-
like( Graphics::Toolkit::Color::Space::Shape->new( $basis, undef, [[1,2],[1],[1,2]]), qr/two elements/, 'one range def element is too small');
36
-
like( Graphics::Toolkit::Color::Space::Shape->new( $basis, undef, [[1,2],[1,2,3],[1,2]]), qr/two elements/, 'one range def element is too big');
37
-
like( Graphics::Toolkit::Color::Space::Shape->new( $basis, undef, [[1,2],[1,'-'],[1,2]]), qr/none numeric/, 'one range def element has a none number');
32
+
like( Graphics::Toolkit::Color::Space::Shape->new( $basis, undef, [[1,2],[1,2]]), qr/invalid range/, 'not enough elements in range def');
33
+
like( Graphics::Toolkit::Color::Space::Shape->new( $basis, undef, [[1,2],[1,2],[1,2],[1,2]]), qr/invalid range/, 'too many elements in range def');
34
+
like( Graphics::Toolkit::Color::Space::Shape->new( $basis, undef, [[1,2],[2,1],[1,2]]), qr/lower bound/, 'one range def element is backward');
35
+
like( Graphics::Toolkit::Color::Space::Shape->new( $basis, undef, [[1,2],[1],[1,2]]), qr/two elements/, 'one range def element is too small');
36
+
like( Graphics::Toolkit::Color::Space::Shape->new( $basis, undef, [[1,2],[1,2,3],[1,2]]), qr/two elements/, 'one range def element is too big');
37
+
like( Graphics::Toolkit::Color::Space::Shape->new( $basis, undef, [[1,2],[1,'-'],[1,2]]), qr/none numeric/, 'one range def element has a none number');
0 commit comments