Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negated generic comparisons do not chain correctly #3398

Closed
p6rt opened this issue May 30, 2014 · 6 comments
Closed

Negated generic comparisons do not chain correctly #3398

p6rt opened this issue May 30, 2014 · 6 comments

Comments

@p6rt
Copy link

p6rt commented May 30, 2014

Migrated from rt.perl.org#121987 (status was 'resolved')

Searchable as RT121987$

@p6rt
Copy link
Author

p6rt commented May 30, 2014

From damian@conway.org

As the following test program illustrates, !before and !after do not
always chain correctly under Rakudo perl6 version 2014.04 built
on MoarVM version 2014.04.

Damian

-----cut----------cut----------cut----------cut----------cut----------cut----------cut-----

#! /usr/bin/env perl6
use v6;

use Test;

for 1..3 X 1..3 X 1..3 -> $x, $y, $z {

  is $x before $y before $z,
  $x before $y && $y before $z, "$x before $y before $z";

  is $x !before $y !before $z,
  $x !before $y && $y !before $z, "$x !before $y !before $z";

  is $x after $y after $z,
  $x after $y && $y after $z, "$x after $y after $z";

  is $x !after $y !after $z,
  $x !after $y && $y !after $z, "$x !after $y !after $z";
}

done;

-----end----------end----------end----------end----------end----------end----------end-----

@p6rt
Copy link
Author

p6rt commented Jul 31, 2014

From @dwarring

I've added some fudged tests to S03-operators/relational.t. A couple taken from the above test cases, also​:

is 3 !> 3 !> 1, 3 !> 3 && 3 !> 1, 'chained !>';
is 3 !< 3 !< 2, 3 !< 3 && 3 !< 2, 'chained !<';

Both failing

On Thu May 29 23​:26​:36 2014, thoughtstream wrote​:

As the following test program illustrates, !before and !after do not
always chain correctly under Rakudo perl6 version 2014.04 built
on MoarVM version 2014.04.

Damian

-----cut----------cut----------cut----------cut----------cut----------
cut----------cut-----

#! /usr/bin/env perl6
use v6;

use Test;

for 1..3 X 1..3 X 1..3 -> $x, $y, $z {

is $x before $y before $z,
$x before $y && $y before $z, "$x before $y before $z";

is $x !before $y !before $z,
$x !before $y && $y !before $z, "$x !before $y !before $z";

is $x after $y after $z,
$x after $y && $y after $z, "$x after $y after $z";

is $x !after $y !after $z,
$x !after $y && $y !after $z, "$x !after $y !after $z";
}

done;

-----end----------end----------end----------end----------end----------
end----------end-----

@p6rt
Copy link
Author

p6rt commented Jul 31, 2014

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Dec 1, 2017

From @AlexDaniel

Still failing (2017.11, HEAD(5929887))

On 2014-07-31 13​:05​:19, david.warring wrote​:

I've added some fudged tests to S03-operators/relational.t. A couple
taken from the above test cases, also​:

is 3 !> 3 !> 1, 3 !> 3 && 3 !> 1, 'chained !>';
is 3 !< 3 !< 2, 3 !< 3 && 3 !< 2, 'chained !<';

Both failing

On Thu May 29 23​:26​:36 2014, thoughtstream wrote​:

As the following test program illustrates, !before and !after do not
always chain correctly under Rakudo perl6 version 2014.04 built
on MoarVM version 2014.04.

Damian

-----cut----------cut----------cut----------cut----------
cut----------
cut----------cut-----

#! /usr/bin/env perl6
use v6;

use Test;

for 1..3 X 1..3 X 1..3 -> $x, $y, $z {

is $x before $y before $z,
$x before $y && $y before $z, "$x before $y before $z";

is $x !before $y !before $z,
$x !before $y && $y !before $z, "$x !before $y !before $z";

is $x after $y after $z,
$x after $y && $y after $z, "$x after $y after $z";

is $x !after $y !after $z,
$x !after $y && $y !after $z, "$x !after $y !after $z";
}

done;

-----end----------end----------end----------end----------
end----------
end----------end-----

@p6rt
Copy link
Author

p6rt commented Dec 11, 2017

From @AlexDaniel

Closing this ticket in favor of this one​: rakudo/rakudo#1304

On 2017-12-01 11​:03​:43, alex.jakimenko@​gmail.com wrote​:

Still failing (2017.11, HEAD(5929887))

On 2014-07-31 13​:05​:19, david.warring wrote​:

I've added some fudged tests to S03-operators/relational.t. A couple
taken from the above test cases, also​:

is 3 !> 3 !> 1, 3 !> 3 && 3 !> 1, 'chained !>';
is 3 !< 3 !< 2, 3 !< 3 && 3 !< 2, 'chained !<';

Both failing

On Thu May 29 23​:26​:36 2014, thoughtstream wrote​:

As the following test program illustrates, !before and !after do not
always chain correctly under Rakudo perl6 version 2014.04 built
on MoarVM version 2014.04.

Damian

-----cut----------cut----------cut----------cut----------
cut----------
cut----------cut-----

#! /usr/bin/env perl6
use v6;

use Test;

for 1..3 X 1..3 X 1..3 -> $x, $y, $z {

is $x before $y before $z,
$x before $y && $y before $z, "$x before $y before $z";

is $x !before $y !before $z,
$x !before $y && $y !before $z, "$x !before $y !before $z";

is $x after $y after $z,
$x after $y && $y after $z, "$x after $y after $z";

is $x !after $y !after $z,
$x !after $y && $y !after $z, "$x !after $y !after $z";
}

done;

-----end----------end----------end----------end----------
end----------
end----------end-----

@p6rt
Copy link
Author

p6rt commented Dec 11, 2017

@AlexDaniel - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Dec 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant