develooper Front page | perl.perl5.changes | Postings from September 2021

[Perl/perl5] 1a40fa: Add strict and warnings to t/op/for.t

From:
Nicholas Clark via perl5-changes
Date:
September 16, 2021 14:09
Subject:
[Perl/perl5] 1a40fa: Add strict and warnings to t/op/for.t
Message ID:
Perl/perl5/push/refs/heads/blead/9038fa-47e2d5@github.com
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 1a40fa6ddbc0f611355e78ab3e623e38d54977c6
      https://github.com/Perl/perl5/commit/1a40fa6ddbc0f611355e78ab3e623e38d54977c6
  Author: Nicholas Clark <nick@ccl4.org>
  Date:   2021-09-16 (Thu, 16 Sep 2021)

  Changed paths:
    M t/op/for.t

  Log Message:
  -----------
  Add strict and warnings to t/op/for.t

strict subs and refs, but not strict vars, because it's obvious that some
tests are explicitly about package variables, but it's not obvious whether
what they are testing is sensitive to rewriting the variables with full
package names.

Also convert it to done_testing(), and add a call to set_up_inc().


  Commit: 47e2d53c92ba2eab83a1cac8dc3c3ed56a7cfe5e
      https://github.com/Perl/perl5/commit/47e2d53c92ba2eab83a1cac8dc3c3ed56a7cfe5e
  Author: Nicholas Clark <nick@ccl4.org>
  Date:   2021-09-16 (Thu, 16 Sep 2021)

  Changed paths:
    M t/op/for.t

  Log Message:
  -----------
  Test that for's iterator aliases the iterated list


Compare: https://github.com/Perl/perl5/compare/9038fafc024d...47e2d53c92ba



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About