### ----------------------------------------------------
### -- Test::Deeply::Relaxed
### -- Licenses: Artistic-2.0
### -- Authors: Peter Pentchev
### -- File: t/01-basic-scalar.rakutest
### ----------------------------------------------------
#!/usr/bin/env raku

use v6.c;

use Test;

use Test::Deeply::Relaxed;

plan 18;

is-deeply-relaxed 'this', 'this', 'string - same';
isnt-deeply-relaxed 'this', 'that', 'string - different';

is-deeply-relaxed 1, 1, 'number - same';
isnt-deeply-relaxed 1, 1.001, 'number - different';

isnt-deeply-relaxed '1', 1, 'string and number';
isnt-deeply-relaxed 1, '1', 'number and string';

is-deeply-relaxed True, True, 'bool true - same';
is-deeply-relaxed False, False, 'bool false - same';
isnt-deeply-relaxed True, False, 'bool true and false - different';
isnt-deeply-relaxed False, True, 'bool false and true - different';

isnt-deeply-relaxed 0, False, 'zero and false - different';
isnt-deeply-relaxed False, 0, 'false and zero - different';
isnt-deeply-relaxed Str, False, 'undef string and false - different';
isnt-deeply-relaxed False, Str, 'false and undef string - different';

isnt-deeply-relaxed 1, True, 'one and true - different';
isnt-deeply-relaxed True, 1, 'true and one - different';
isnt-deeply-relaxed '', True, 'empty string and true - different';
isnt-deeply-relaxed True, '', 'true and empty string - different';


