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
Fix typos in 2 test files #16647
Comments
From @sisyphusHi, Patches are attached. Cheers, |
From @sisyphus0001-posix_t.patchFrom d766b5d3b28eb2c51874c881271d6e41f8f7854a Mon Sep 17 00:00:00 2001
From: sisyphus <sisyphus1@optusnet.com.au>
Date: Tue, 31 Jul 2018 19:14:12 +1000
Subject: [PATCH 1/2] posix_t
---
ext/POSIX/t/posix.t | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ext/POSIX/t/posix.t b/ext/POSIX/t/posix.t
index 1b2dd40..e33e047 100644
--- a/ext/POSIX/t/posix.t
+++ b/ext/POSIX/t/posix.t
@@ -181,7 +181,7 @@ SKIP: {
}
# we're just checking that strtold works, not how accurate it is
- ($n, $x) = &POSIX::strtod('2.718_ISH');
+ ($n, $x) = &POSIX::strtold('2.718_ISH');
cmp_ok(abs("2.718" - $n), '<', 1e-6, 'strtold works');
is($x, 4, 'strtold works');
--
2.1.4
|
From @sisyphus0002-run_locale_t.patchFrom 4b6055771db9efc12cdb282cdd8f77492f93ca33 Mon Sep 17 00:00:00 2001
From: sisyphus <sisyphus1@optusnet.com.au>
Date: Tue, 31 Jul 2018 19:14:49 +1000
Subject: [PATCH 2/2] run_locale_t
---
t/run/locale.t | 2 ++
1 file changed, 2 insertions(+)
diff --git a/t/run/locale.t b/t/run/locale.t
index 282fbb5..ae5abca 100644
--- a/t/run/locale.t
+++ b/t/run/locale.t
@@ -438,6 +438,7 @@ EOF
EOF
"1,5\n2,5", { stderr => 'devnull' }, "Can do math when radix is a comma"); # [perl 115800]
+ SKIP: {
unless ($have_strtod) {
skip("no strtod()", 1);
}
@@ -451,6 +452,7 @@ EOF
EOF
"1.5", { stderr => 'devnull' }, "POSIX::strtod() uses underlying locale");
}
+ }
}
}
--
2.1.4
|
From @tonycozOn Tue, 31 Jul 2018 02:28:55 -0700, sisyphus359@gmail.com wrote:
Is there any chance you could supply patches with better commit messages? Otherwise I can edit the commit messages before pushing them. Tony |
The RT System itself - Status changed from 'new' to 'open' |
From @sisyphusOn Tue, 31 Jul 2018 22:56:57 -0700, tonyc wrote:
Sure. I hope the attached are satisfactory. |
From @sisyphus0001-t-run-locale.t-Add-missing-SKIP-block-around-the-POS.patchFrom 44e74a0043bb7da69369c1fc0bb7f94d0449ddd6 Mon Sep 17 00:00:00 2001
From: sisyphus <sisyphus1@optusnet.com.au>
Date: Wed, 1 Aug 2018 19:08:40 +1000
Subject: [PATCH 1/2] t/run/locale.t - Add missing SKIP:{} block around the
"POSIX::strtod() uses underlying locale" test
---
t/run/locale.t | 2 ++
1 file changed, 2 insertions(+)
diff --git a/t/run/locale.t b/t/run/locale.t
index 282fbb5..ae5abca 100644
--- a/t/run/locale.t
+++ b/t/run/locale.t
@@ -438,6 +438,7 @@ EOF
EOF
"1,5\n2,5", { stderr => 'devnull' }, "Can do math when radix is a comma"); # [perl 115800]
+ SKIP: {
unless ($have_strtod) {
skip("no strtod()", 1);
}
@@ -451,6 +452,7 @@ EOF
EOF
"1.5", { stderr => 'devnull' }, "POSIX::strtod() uses underlying locale");
}
+ }
}
}
--
2.1.4
|
From @sisyphus0002-ext-POSIX-t-posix.t-Replace-POSIX-strtod-with-POSIX-.patchFrom e8e8165cd9f991ab40aed254a4c31587335fa9e3 Mon Sep 17 00:00:00 2001
From: sisyphus <sisyphus1@optusnet.com.au>
Date: Wed, 1 Aug 2018 19:13:08 +1000
Subject: [PATCH 2/2] ext/POSIX/t/posix.t - Replace "&POSIX::strtod" with
"&POSIX::strtold" in "strtold works" test
---
ext/POSIX/t/posix.t | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ext/POSIX/t/posix.t b/ext/POSIX/t/posix.t
index 1b2dd40..e33e047 100644
--- a/ext/POSIX/t/posix.t
+++ b/ext/POSIX/t/posix.t
@@ -181,7 +181,7 @@ SKIP: {
}
# we're just checking that strtold works, not how accurate it is
- ($n, $x) = &POSIX::strtod('2.718_ISH');
+ ($n, $x) = &POSIX::strtold('2.718_ISH');
cmp_ok(abs("2.718" - $n), '<', 1e-6, 'strtold works');
is($x, 4, 'strtold works');
--
2.1.4
|
From @tonycozOn Wed, 01 Aug 2018 02:19:17 -0700, sisyphus@cpan.org wrote:
From perlhack.pod: The first line of the commit message should be a short description A lot of Git tools (Gitweb, GitHub, git log --pretty=oneline, ...) will The commit message should include a description of the problem that the As a general rule of thumb, your commit message should help a so shorter first lines would be useful. Tony |
From @sisyphusI can't connect to most of the internet (including rt.perl.org) at the Cheers, On Thu, Aug 2, 2018 at 10:39 AM, Tony Cook via RT <perlbug-followup@perl.org
|
From @sisyphus0001-t-run-locale.t-Add-missing-SKIP-block.patchFrom 9f5739df191a1082cf8e2ea239839ce43851e05a Mon Sep 17 00:00:00 2001
From: sisyphus <sisyphus1@optusnet.com.au>
Date: Thu, 2 Aug 2018 17:55:44 +1000
Subject: [PATCH 1/2] t/run/locale.t - Add missing SKIP:{} block
---
t/run/locale.t | 2 ++
1 file changed, 2 insertions(+)
diff --git a/t/run/locale.t b/t/run/locale.t
index 282fbb5..ae5abca 100644
--- a/t/run/locale.t
+++ b/t/run/locale.t
@@ -438,6 +438,7 @@ EOF
EOF
"1,5\n2,5", { stderr => 'devnull' }, "Can do math when radix is a comma"); # [perl 115800]
+ SKIP: {
unless ($have_strtod) {
skip("no strtod()", 1);
}
@@ -451,6 +452,7 @@ EOF
EOF
"1.5", { stderr => 'devnull' }, "POSIX::strtod() uses underlying locale");
}
+ }
}
}
--
2.1.4
|
From @sisyphus0002-ext-POSIX-t-posix.t-Fix-strtold-works-test.patchFrom f234d77bfa9a1789e4a82f3b47e7ef7e861bde21 Mon Sep 17 00:00:00 2001
From: sisyphus <sisyphus1@optusnet.com.au>
Date: Thu, 2 Aug 2018 17:59:50 +1000
Subject: [PATCH 2/2] ext/POSIX/t/posix.t - Fix 'strtold works' test
---
ext/POSIX/t/posix.t | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ext/POSIX/t/posix.t b/ext/POSIX/t/posix.t
index 1b2dd40..e33e047 100644
--- a/ext/POSIX/t/posix.t
+++ b/ext/POSIX/t/posix.t
@@ -181,7 +181,7 @@ SKIP: {
}
# we're just checking that strtold works, not how accurate it is
- ($n, $x) = &POSIX::strtod('2.718_ISH');
+ ($n, $x) = &POSIX::strtold('2.718_ISH');
cmp_ok(abs("2.718" - $n), '<', 1e-6, 'strtold works');
is($x, 4, 'strtold works');
--
2.1.4
|
From @sisyphusI can't connect to most of the internet (including rt.perl.org) at the Cheers, On Thu, Aug 2, 2018 at 10:39 AM, Tony Cook via RT <perlbug-followup@perl.org
|
From @sisyphus0001-t-run-locale.t-Add-missing-SKIP-block.patchFrom 9f5739df191a1082cf8e2ea239839ce43851e05a Mon Sep 17 00:00:00 2001
From: sisyphus <sisyphus1@optusnet.com.au>
Date: Thu, 2 Aug 2018 17:55:44 +1000
Subject: [PATCH 1/2] t/run/locale.t - Add missing SKIP:{} block
---
t/run/locale.t | 2 ++
1 file changed, 2 insertions(+)
diff --git a/t/run/locale.t b/t/run/locale.t
index 282fbb5..ae5abca 100644
--- a/t/run/locale.t
+++ b/t/run/locale.t
@@ -438,6 +438,7 @@ EOF
EOF
"1,5\n2,5", { stderr => 'devnull' }, "Can do math when radix is a comma"); # [perl 115800]
+ SKIP: {
unless ($have_strtod) {
skip("no strtod()", 1);
}
@@ -451,6 +452,7 @@ EOF
EOF
"1.5", { stderr => 'devnull' }, "POSIX::strtod() uses underlying locale");
}
+ }
}
}
--
2.1.4
|
From @sisyphus0002-ext-POSIX-t-posix.t-Fix-strtold-works-test.patchFrom f234d77bfa9a1789e4a82f3b47e7ef7e861bde21 Mon Sep 17 00:00:00 2001
From: sisyphus <sisyphus1@optusnet.com.au>
Date: Thu, 2 Aug 2018 17:59:50 +1000
Subject: [PATCH 2/2] ext/POSIX/t/posix.t - Fix 'strtold works' test
---
ext/POSIX/t/posix.t | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ext/POSIX/t/posix.t b/ext/POSIX/t/posix.t
index 1b2dd40..e33e047 100644
--- a/ext/POSIX/t/posix.t
+++ b/ext/POSIX/t/posix.t
@@ -181,7 +181,7 @@ SKIP: {
}
# we're just checking that strtold works, not how accurate it is
- ($n, $x) = &POSIX::strtod('2.718_ISH');
+ ($n, $x) = &POSIX::strtold('2.718_ISH');
cmp_ok(abs("2.718" - $n), '<', 1e-6, 'strtold works');
is($x, 4, 'strtold works');
--
2.1.4
|
From @jkeenanOn Thu, 02 Aug 2018 08:09:31 GMT, sisyphus359@gmail.com wrote:
Thanks. Applied to blead in commit c4fe5c4 -- |
@jkeenan - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#133417 (status was 'resolved')
Searchable as RT133417$
The text was updated successfully, but these errors were encountered: