svn commit: r1799631 - in /commons/proper/configuration/trunk: pom.xml src/test/java/org/apache/commons/configuration2/DatabaseConfigurationTestHelper.java
Author: ggregory Date: Thu Jun 22 21:54:37 2017 New Revision: 1799631 URL: http://svn.apache.org/viewvc?rev=1799631&view=rev Log: Update tests from Apache Commons DBCP 1.4 to 2.2.1 and POOL from 1.6 to 2.4.2 (DBCP depends on POOL). Local build OK. Modified: commons/proper/configuration/trunk/pom.xml commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration2/DatabaseConfigurationTestHelper.java Modified: commons/proper/configuration/trunk/pom.xml URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/pom.xml?rev=1799631&r1=1799630&r2=1799631&view=diff == --- commons/proper/configuration/trunk/pom.xml (original) +++ commons/proper/configuration/trunk/pom.xml Thu Jun 22 21:54:37 2017 @@ -388,16 +388,16 @@ - commons-dbcp - commons-dbcp - 1.4 + org.apache.commons + commons-dbcp2 + 2.1.1 test - commons-pool - commons-pool - 1.6 + org.apache.commons + commons-pool2 + 2.4.2 test Modified: commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration2/DatabaseConfigurationTestHelper.java URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration2/DatabaseConfigurationTestHelper.java?rev=1799631&r1=1799630&r2=1799631&view=diff == --- commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration2/DatabaseConfigurationTestHelper.java (original) +++ commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration2/DatabaseConfigurationTestHelper.java Thu Jun 22 21:54:37 2017 @@ -28,7 +28,7 @@ import org.apache.commons.configuration2 import org.apache.commons.configuration2.ex.ConfigurationException; import org.apache.commons.configuration2.ex.ConfigurationRuntimeException; import org.apache.commons.configuration2.test.HsqlDB; -import org.apache.commons.dbcp.BasicDataSource; +import org.apache.commons.dbcp2.BasicDataSource; import org.dbunit.database.DatabaseConnection; import org.dbunit.database.IDatabaseConnection; import org.dbunit.dataset.IDataSet;
svn commit: r1799629 - /commons/proper/configuration/trunk/pom.xml
Author: ggregory Date: Thu Jun 22 21:48:15 2017 New Revision: 1799629 URL: http://svn.apache.org/viewvc?rev=1799629&view=rev Log: Update tests from Mail 1.4 to 1.5.6. Modified: commons/proper/configuration/trunk/pom.xml Modified: commons/proper/configuration/trunk/pom.xml URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/pom.xml?rev=1799629&r1=1799628&r2=1799629&view=diff == --- commons/proper/configuration/trunk/pom.xml (original) +++ commons/proper/configuration/trunk/pom.xml Thu Jun 22 21:48:15 2017 @@ -461,10 +461,11 @@ test + - javax.mail - mail - 1.4 + com.sun.mail + mailapi + 1.5.6 test
svn commit: r1799628 - in /commons/proper/configuration/trunk: pom.xml src/changes/changes.xml
Author: ggregory Date: Thu Jun 22 21:31:40 2017 New Revision: 1799628 URL: http://svn.apache.org/viewvc?rev=1799628&view=rev Log: [CONFIGURATION-669] Update optional Spring dependency from 4.2.5.RELEASE to 4.3.9.RELEASE. Modified: commons/proper/configuration/trunk/pom.xml commons/proper/configuration/trunk/src/changes/changes.xml Modified: commons/proper/configuration/trunk/pom.xml URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/pom.xml?rev=1799628&r1=1799627&r2=1799628&view=diff == --- commons/proper/configuration/trunk/pom.xml (original) +++ commons/proper/configuration/trunk/pom.xml Thu Jun 22 21:31:40 2017 @@ -534,7 +534,7 @@ * 1.7.25 -4.2.5.RELEASE +4.3.9.RELEASE Modified: commons/proper/configuration/trunk/src/changes/changes.xml URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/changes/changes.xml?rev=1799628&r1=1799627&r2=1799628&view=diff == --- commons/proper/configuration/trunk/src/changes/changes.xml (original) +++ commons/proper/configuration/trunk/src/changes/changes.xml Thu Jun 22 21:31:40 2017 @@ -67,6 +67,9 @@ Update Apache Commons Lang from 3.3.2 to 3.6. + +Update optional Spring dependency from 4.2.5.RELEASE to 4.3.9.RELEASE. +
svn commit: r1799627 - /commons/proper/configuration/trunk/pom.xml
Author: ggregory Date: Thu Jun 22 21:26:05 2017 New Revision: 1799627 URL: http://svn.apache.org/viewvc?rev=1799627&view=rev Log: Update tests from easymock 3.2 to 3.4. Modified: commons/proper/configuration/trunk/pom.xml Modified: commons/proper/configuration/trunk/pom.xml URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/pom.xml?rev=1799627&r1=1799626&r2=1799627&view=diff == --- commons/proper/configuration/trunk/pom.xml (original) +++ commons/proper/configuration/trunk/pom.xml Thu Jun 22 21:26:05 2017 @@ -457,7 +457,7 @@ org.easymock easymock - 3.2 + 3.4 test
svn commit: r1799626 - /commons/proper/configuration/trunk/pom.xml
Author: ggregory Date: Thu Jun 22 21:22:58 2017 New Revision: 1799626 URL: http://svn.apache.org/viewvc?rev=1799626&view=rev Log: Update tests dbunit from 2.1 to 2.3.0. Must be done with updating tests from Slf4j 1.7.7 to 1.7.25. Modified: commons/proper/configuration/trunk/pom.xml Modified: commons/proper/configuration/trunk/pom.xml URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/pom.xml?rev=1799626&r1=1799625&r2=1799626&view=diff == --- commons/proper/configuration/trunk/pom.xml (original) +++ commons/proper/configuration/trunk/pom.xml Thu Jun 22 21:22:58 2017 @@ -410,9 +410,9 @@ - dbunit + org.dbunit dbunit - 2.1 + 2.3.0 test @@ -495,6 +495,14 @@ ${slf4j.version} test + + + org.slf4j + slf4j-nop + ${slf4j.version} + test + + @@ -525,7 +533,7 @@ org.springframework.*;resolution:=optional, * -1.7.7 +1.7.25 4.2.5.RELEASE
svn commit: r1799625 - /commons/proper/configuration/trunk/pom.xml
Author: ggregory Date: Thu Jun 22 21:11:04 2017 New Revision: 1799625 URL: http://svn.apache.org/viewvc?rev=1799625&view=rev Log: Update tests from HDBSQL 1.8.0.10 to 2.3.5 (2.4.0 requires Java 8). Modified: commons/proper/configuration/trunk/pom.xml Modified: commons/proper/configuration/trunk/pom.xml URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/pom.xml?rev=1799625&r1=1799624&r2=1799625&view=diff == --- commons/proper/configuration/trunk/pom.xml (original) +++ commons/proper/configuration/trunk/pom.xml Thu Jun 22 21:11:04 2017 @@ -402,9 +402,10 @@ - hsqldb + org.hsqldb hsqldb - 1.8.0.10 + + 2.3.5 test
svn commit: r1799621 - in /commons/proper/configuration/trunk: pom.xml src/changes/changes.xml
Author: ggregory Date: Thu Jun 22 20:43:08 2017 New Revision: 1799621 URL: http://svn.apache.org/viewvc?rev=1799621&view=rev Log: [CONFIGURATION-667 ]Update Apache Commons Lang from 3.3.2 to 3.6. Modified: commons/proper/configuration/trunk/pom.xml commons/proper/configuration/trunk/src/changes/changes.xml Modified: commons/proper/configuration/trunk/pom.xml URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/pom.xml?rev=1799621&r1=1799620&r2=1799621&view=diff == --- commons/proper/configuration/trunk/pom.xml (original) +++ commons/proper/configuration/trunk/pom.xml Thu Jun 22 20:43:08 2017 @@ -249,7 +249,7 @@ org.apache.commons commons-lang3 - 3.3.2 + 3.6 Modified: commons/proper/configuration/trunk/src/changes/changes.xml URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/changes/changes.xml?rev=1799621&r1=1799620&r2=1799621&view=diff == --- commons/proper/configuration/trunk/src/changes/changes.xml (original) +++ commons/proper/configuration/trunk/src/changes/changes.xml Thu Jun 22 20:43:08 2017 @@ -64,6 +64,9 @@ Added new JSONConfiguration class to support configuration files in JSON format. + +Update Apache Commons Lang from 3.3.2 to 3.6. +
svn commit: r1799618 - /commons/proper/configuration/trunk/pom.xml
Author: ggregory Date: Thu Jun 22 20:38:35 2017 New Revision: 1799618 URL: http://svn.apache.org/viewvc?rev=1799618&view=rev Log: Add self as developer. Modified: commons/proper/configuration/trunk/pom.xml Modified: commons/proper/configuration/trunk/pom.xml URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/pom.xml?rev=1799618&r1=1799617&r2=1799618&view=diff == --- commons/proper/configuration/trunk/pom.xml (original) +++ commons/proper/configuration/trunk/pom.xml Thu Jun 22 20:38:35 2017 @@ -178,6 +178,17 @@ Java Developer + + + Gary Gregory + ggregory + ggreg...@apache.org + Rocket Software + -8 + +Java Developer + +
svn commit: r1799617 - /commons/proper/configuration/trunk/pom.xml
Author: ggregory Date: Thu Jun 22 20:37:44 2017 New Revision: 1799617 URL: http://svn.apache.org/viewvc?rev=1799617&view=rev Log: Update commons-parent from 41 to 42. Modified: commons/proper/configuration/trunk/pom.xml Modified: commons/proper/configuration/trunk/pom.xml URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/pom.xml?rev=1799617&r1=1799616&r2=1799617&view=diff == --- commons/proper/configuration/trunk/pom.xml (original) +++ commons/proper/configuration/trunk/pom.xml Thu Jun 22 20:37:44 2017 @@ -25,7 +25,7 @@ org.apache.commons commons-parent -41 +42 4.0.0 org.apache.commons
svn commit: r1799616 - /commons/proper/configuration/trunk/pom.xml
Author: ggregory Date: Thu Jun 22 20:37:25 2017 New Revision: 1799616 URL: http://svn.apache.org/viewvc?rev=1799616&view=rev Log: Use the current version of Jackson. All the tests pass for me with 'mvn clean test'. Modified: commons/proper/configuration/trunk/pom.xml Modified: commons/proper/configuration/trunk/pom.xml URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/pom.xml?rev=1799616&r1=1799615&r2=1799616&view=diff == --- commons/proper/configuration/trunk/pom.xml (original) +++ commons/proper/configuration/trunk/pom.xml Thu Jun 22 20:37:25 2017 @@ -370,7 +370,7 @@ com.fasterxml.jackson.core jackson-databind - 2.5.3 + 2.8.9 true
[text] TEXT-90: Add CharacterPredicates for ASCII letters (uppercase/lowercase) and Arabic numerals (closes #50)
Repository: commons-text Updated Branches: refs/heads/master 25ec8d186 -> 569dbc094 TEXT-90: Add CharacterPredicates for ASCII letters (uppercase/lowercase) and Arabic numerals (closes #50) Add CharacterPredicates#ARABIC_NUMERALS, #ASCII_LOWERCASE_LETTERS, #ASCII_UPPERCASE_LETTERS, #ASCII_LETTERS and #ASCII_ALPHA_NUMERALS. Project: http://git-wip-us.apache.org/repos/asf/commons-text/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-text/commit/569dbc09 Tree: http://git-wip-us.apache.org/repos/asf/commons-text/tree/569dbc09 Diff: http://git-wip-us.apache.org/repos/asf/commons-text/diff/569dbc09 Branch: refs/heads/master Commit: 569dbc09402a6f28334936567a597e3d0db9185c Parents: 25ec8d1 Author: Pascal Schumacher Authored: Wed Jun 14 22:04:55 2017 +0200 Committer: Pascal Schumacher Committed: Thu Jun 22 20:53:39 2017 +0200 -- src/changes/changes.xml | 1 + .../commons/text/CharacterPredicates.java | 61 ++ .../commons/text/CharacterPredicatesTest.java | 66 3 files changed, 128 insertions(+) -- http://git-wip-us.apache.org/repos/asf/commons-text/blob/569dbc09/src/changes/changes.xml -- diff --git a/src/changes/changes.xml b/src/changes/changes.xml index f6c5b8f..412d1f4 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -46,6 +46,7 @@ The type attribute can be add,update,fix,remove. + Add CharacterPredicates for ASCII letters (uppercase/lowercase) and arabic numerals Added CaseUtils class with camel case conversion support RandomStringGenerator should be able to generate a String with a random length Update commons-lang dependency to version 3.6 http://git-wip-us.apache.org/repos/asf/commons-text/blob/569dbc09/src/main/java/org/apache/commons/text/CharacterPredicates.java -- diff --git a/src/main/java/org/apache/commons/text/CharacterPredicates.java b/src/main/java/org/apache/commons/text/CharacterPredicates.java index a4544de..dc504c7 100644 --- a/src/main/java/org/apache/commons/text/CharacterPredicates.java +++ b/src/main/java/org/apache/commons/text/CharacterPredicates.java @@ -48,5 +48,66 @@ public enum CharacterPredicates implements CharacterPredicate { public boolean test(int codePoint) { return Character.isDigit(codePoint); } +}, + +/** + * Tests if the code points represents a number between 0 and 9. + * + * @since 1.2 + */ +ARABIC_NUMERALS { +@Override +public boolean test(int codePoint) { +return codePoint >= '0' && codePoint <= '9'; +} +}, + +/** + * Tests if the code points represents a letter between a and z. + * + * @since 1.2 + */ +ASCII_LOWERCASE_LETTERS { +@Override +public boolean test(int codePoint) { +return codePoint >= 'a' && codePoint <= 'z'; +} +}, + +/** + * Tests if the code points represents a letter between A and Z. + * + * @since 1.2 + */ +ASCII_UPPERCASE_LETTERS { +@Override +public boolean test(int codePoint) { +return codePoint >= 'A' && codePoint <= 'Z'; +} +}, + +/** + * Tests if the code points represents a letter between a and Z. + * + * @since 1.2 + */ +ASCII_LETTERS { +@Override +public boolean test(int codePoint) { +return ASCII_LOWERCASE_LETTERS.test(codePoint) || ASCII_UPPERCASE_LETTERS.test(codePoint); +} +}, + +/** + * Tests if the code points represents a letter between a and Z or a number between 0 and 9. + * + * @since 1.2 + */ +ASCII_ALPHA_NUMERALS { +@Override +public boolean test(int codePoint) { +return ASCII_LOWERCASE_LETTERS.test(codePoint) || ASCII_UPPERCASE_LETTERS.test(codePoint) +|| ARABIC_NUMERALS.test(codePoint); +} } } http://git-wip-us.apache.org/repos/asf/commons-text/blob/569dbc09/src/test/java/org/apache/commons/text/CharacterPredicatesTest.java -- diff --git a/src/test/java/org/apache/commons/text/CharacterPredicatesTest.java b/src/test/java/org/apache/commons/text/CharacterPredicatesTest.java index a22b466..1100868 100644 --- a/src/test/java/org/apache/commons/text/CharacterPredicatesTest.java +++ b/src/test/java/org/apache/commons/text/CharacterPredicatesTest.java @@ -44,4 +44,70 @@ public class CharacterPredicatesTest { assertFalse(CharacterPredicates.DIGITS.test('.')); assertFalse(CharacterPredicates.DIGITS.test('L')); } + +@Test +public void testArabicNu
[3/3] [text] TEXT-85: Added CaseUtils class with camel case conversion
TEXT-85: Added CaseUtils class with camel case conversion correct since javadoc tag and other minimal clean-ups Project: http://git-wip-us.apache.org/repos/asf/commons-text/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-text/commit/25ec8d18 Tree: http://git-wip-us.apache.org/repos/asf/commons-text/tree/25ec8d18 Diff: http://git-wip-us.apache.org/repos/asf/commons-text/diff/25ec8d18 Branch: refs/heads/master Commit: 25ec8d186b37b8d0a85a9c42d10a107966ce955d Parents: 997a613 Author: Pascal Schumacher Authored: Thu Jun 22 20:25:13 2017 +0200 Committer: Pascal Schumacher Committed: Thu Jun 22 20:25:13 2017 +0200 -- src/main/java/org/apache/commons/text/CaseUtils.java | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) -- http://git-wip-us.apache.org/repos/asf/commons-text/blob/25ec8d18/src/main/java/org/apache/commons/text/CaseUtils.java -- diff --git a/src/main/java/org/apache/commons/text/CaseUtils.java b/src/main/java/org/apache/commons/text/CaseUtils.java index 0e313a4..ae2067e 100644 --- a/src/main/java/org/apache/commons/text/CaseUtils.java +++ b/src/main/java/org/apache/commons/text/CaseUtils.java @@ -28,7 +28,7 @@ import java.util.Set; * An exception will not be thrown for a null input. * Each method documents its behaviour in more detail. * - * @since 1.0 + * @since 1.2 */ public class CaseUtils { @@ -44,8 +44,6 @@ public class CaseUtils { super(); } -// Camel Case -//--- /** * Converts all the delimiter separated words in a String into camelCase, * that is each word is made up of a titlecase character and then a series of @@ -112,19 +110,17 @@ public class CaseUtils { } else { return str; } - } /** * Converts an array of delimiters to a hash set of code points. Code point of space(32) is added - * as the default value. The generated hash set provides O(1) - * lookup time . + * as the default value. The generated hash set provides O(1) lookup time. * * @param delimiters set of characters to determine capitalization, null means whitespace * @return Set */ private static Set generateDelimiterSet(final char[] delimiters) { -Set delimiterHashSet = new HashSet(); +Set delimiterHashSet = new HashSet<>(); delimiterHashSet.add(Character.codePointAt(new char[]{' '}, 0)); if (delimiters == null || delimiters.length == 0) { return delimiterHashSet; @@ -134,7 +130,6 @@ public class CaseUtils { delimiterHashSet.add(Character.codePointAt(delimiters, index)); } return delimiterHashSet; - } }
[1/3] [text] StrBuilderTest#testAppendln: make test operating system independent
Repository: commons-text Updated Branches: refs/heads/master 2de4cf9b9 -> 25ec8d186 StrBuilderTest#testAppendln: make test operating system independent Project: http://git-wip-us.apache.org/repos/asf/commons-text/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-text/commit/3fcc4e85 Tree: http://git-wip-us.apache.org/repos/asf/commons-text/tree/3fcc4e85 Diff: http://git-wip-us.apache.org/repos/asf/commons-text/diff/3fcc4e85 Branch: refs/heads/master Commit: 3fcc4e8586807424fff21ee1f55fc2779ae78524 Parents: 2de4cf9 Author: Pascal Schumacher Authored: Thu Jun 22 20:22:41 2017 +0200 Committer: Pascal Schumacher Committed: Thu Jun 22 20:22:41 2017 +0200 -- src/test/java/org/apache/commons/text/StrBuilderTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/commons-text/blob/3fcc4e85/src/test/java/org/apache/commons/text/StrBuilderTest.java -- diff --git a/src/test/java/org/apache/commons/text/StrBuilderTest.java b/src/test/java/org/apache/commons/text/StrBuilderTest.java index 6039a95..24bc6e1 100644 --- a/src/test/java/org/apache/commons/text/StrBuilderTest.java +++ b/src/test/java/org/apache/commons/text/StrBuilderTest.java @@ -2103,6 +2103,6 @@ public class StrBuilderTest { public void testAppendln() { final StrBuilder sb1 = new StrBuilder(); final char ch = 'c'; -assertEquals("c\n", sb1.appendln(ch).toString()); +assertEquals("c" + System.lineSeparator(), sb1.appendln(ch).toString()); } }
[2/3] [text] StrBuilderTest#testAppendStringBuilderNull: use second StringBuilder for second assertion
StrBuilderTest#testAppendStringBuilderNull: use second StringBuilder for second assertion Project: http://git-wip-us.apache.org/repos/asf/commons-text/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-text/commit/997a6134 Tree: http://git-wip-us.apache.org/repos/asf/commons-text/tree/997a6134 Diff: http://git-wip-us.apache.org/repos/asf/commons-text/diff/997a6134 Branch: refs/heads/master Commit: 997a613477a170926f5e82d693cc5cf2f4d1e473 Parents: 3fcc4e8 Author: Pascal Schumacher Authored: Thu Jun 22 20:24:14 2017 +0200 Committer: Pascal Schumacher Committed: Thu Jun 22 20:24:14 2017 +0200 -- src/test/java/org/apache/commons/text/StrBuilderTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/commons-text/blob/997a6134/src/test/java/org/apache/commons/text/StrBuilderTest.java -- diff --git a/src/test/java/org/apache/commons/text/StrBuilderTest.java b/src/test/java/org/apache/commons/text/StrBuilderTest.java index 24bc6e1..8f81434 100644 --- a/src/test/java/org/apache/commons/text/StrBuilderTest.java +++ b/src/test/java/org/apache/commons/text/StrBuilderTest.java @@ -2096,7 +2096,7 @@ public class StrBuilderTest { assertEquals("", sb1.append(b).toString()); final StrBuilder sb2 = new StrBuilder(); -assertEquals("", sb1.append(b, 0, 0).toString()); +assertEquals("", sb2.append(b, 0, 0).toString()); } @Test
svn commit: r1799599 - /commons/proper/configuration/trunk/pom.xml
Author: oheger Date: Thu Jun 22 17:40:53 2017 New Revision: 1799599 URL: http://svn.apache.org/viewvc?rev=1799599&view=rev Log: Updated dependency to jackson-databind. Also moved new dependencies out of the section for test dependencies. Modified: commons/proper/configuration/trunk/pom.xml Modified: commons/proper/configuration/trunk/pom.xml URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/pom.xml?rev=1799599&r1=1799598&r2=1799599&view=diff == --- commons/proper/configuration/trunk/pom.xml (original) +++ commons/proper/configuration/trunk/pom.xml Thu Jun 22 17:40:53 2017 @@ -360,6 +360,20 @@ provided + + org.yaml + snakeyaml + 1.18 + true + + + + com.fasterxml.jackson.core + jackson-databind + 2.5.3 + true + + @@ -469,22 +483,6 @@ ${slf4j.version} test - - - - org.yaml - snakeyaml - 1.18 - true - - - - - com.fasterxml.jackson.core - jackson-databind - 2.5.3 - true -
commons-numbers git commit: minor change to Complex doc
Repository: commons-numbers Updated Branches: refs/heads/complex-dev 45a7579e9 -> 3bd29a023 minor change to Complex doc Project: http://git-wip-us.apache.org/repos/asf/commons-numbers/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-numbers/commit/3bd29a02 Tree: http://git-wip-us.apache.org/repos/asf/commons-numbers/tree/3bd29a02 Diff: http://git-wip-us.apache.org/repos/asf/commons-numbers/diff/3bd29a02 Branch: refs/heads/complex-dev Commit: 3bd29a023a11e64e00073b85fd4acb6ad4f872cc Parents: 45a7579 Author: Eric Barnhill Authored: Thu Jun 22 14:52:31 2017 +0200 Committer: Eric Barnhill Committed: Thu Jun 22 14:52:31 2017 +0200 -- .../main/java/org/apache/commons/numbers/complex/Complex.java| 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/3bd29a02/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java -- diff --git a/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java b/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java index 2692cc5..5e54578 100644 --- a/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java +++ b/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java @@ -172,7 +172,9 @@ public class Complex implements Serializable { /** * Return the norm of this complex number, defined as the square of the magnitude - * (Matches C++ 11 standards.) +in the + * http://pubs.opengroup.org/onlinepubs/9699919799/functions/cproj.html";> + * IEEE and ISO C standards. * * @return the norm. */
commons-numbers git commit: NUMBERS-45: Removed tests in old ComplexTest class calling Complex.isNaN() and Complex.isInf()
Repository: commons-numbers Updated Branches: refs/heads/complex-dev 28d6b98f0 -> 45a7579e9 NUMBERS-45: Removed tests in old ComplexTest class calling Complex.isNaN() and Complex.isInf() Project: http://git-wip-us.apache.org/repos/asf/commons-numbers/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-numbers/commit/45a7579e Tree: http://git-wip-us.apache.org/repos/asf/commons-numbers/tree/45a7579e Diff: http://git-wip-us.apache.org/repos/asf/commons-numbers/diff/45a7579e Branch: refs/heads/complex-dev Commit: 45a7579e92befffaf70e2ae24a4036458da071bc Parents: 28d6b98 Author: Eric Barnhill Authored: Thu Jun 22 14:49:03 2017 +0200 Committer: Eric Barnhill Committed: Thu Jun 22 14:49:03 2017 +0200 -- .../commons/numbers/complex/ComplexTest.java| 129 --- 1 file changed, 129 deletions(-) -- http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/45a7579e/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/ComplexTest.java -- diff --git a/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/ComplexTest.java b/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/ComplexTest.java index 1641723..99a9624 100644 --- a/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/ComplexTest.java +++ b/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/ComplexTest.java @@ -62,18 +62,6 @@ public class ComplexTest { } @Test -public void testConstructorNaN() { -Complex z = new Complex(3.0, Double.NaN); -Assert.assertTrue(z.isNaN()); - -z = new Complex(nan, 4.0); -Assert.assertTrue(z.isNaN()); - -z = new Complex(3.0, 4.0); -Assert.assertFalse(z.isNaN()); -} - -@Test public void testAbs() { Complex z = new Complex(3.0, 4.0); Assert.assertEquals(5.0, z.abs(), 0); @@ -165,12 +153,6 @@ public class ComplexTest { } @Test -public void testConjugateNaN() { -Complex z = Complex.NaN.conjugate(); -Assert.assertTrue(z.isNaN()); -} - -@Test public void testConjugateInfinite() { Complex z = new Complex(0, inf); Assert.assertEquals(neginf, z.conjugate().getImaginary(), 0); @@ -239,13 +221,6 @@ public class ComplexTest { } @Test -public void testDivideNaN() { -Complex x = new Complex(3.0, 4.0); -Complex z = x.divide(Complex.NaN); -Assert.assertTrue(z.isNaN()); -} - -@Test public void testDivideNaNInf() { Complex z = oneInf.divide(Complex.ONE); Assert.assertTrue(Double.isNaN(z.getReal())); @@ -328,11 +303,6 @@ public class ComplexTest { } @Test -public void testReciprocalNaN() { -Assert.assertTrue(Complex.NaN.reciprocal().isNaN()); -} - -@Test public void testMultiply() { Complex x = new Complex(3.0, 4.0); Complex y = new Complex(5.0, 6.0); @@ -351,12 +321,6 @@ public class ComplexTest { } @Test -public void testMultiplyInfInf() { -// Assert.assertTrue(infInf.multiply(infInf).isNaN()); // MATH-620 -Assert.assertTrue(infInf.multiply(infInf).isInfinite()); -} - -@Test public void testMultiplyNaNInf() { Complex z = new Complex(1,1); Complex w = z.multiply(infOne); @@ -420,12 +384,6 @@ public class ComplexTest { } @Test -public void testNegateNaN() { -Complex z = Complex.NaN.negate(); -Assert.assertTrue(z.isNaN()); -} - -@Test public void testSubtract() { Complex x = new Complex(3.0, 4.0); Complex y = new Complex(5.0, 6.0); @@ -669,11 +627,6 @@ public class ComplexTest { } @Test -public void testAcosNaN() { -Assert.assertTrue(Complex.NaN.acos().isNaN()); -} - -@Test public void testAsin() { Complex z = new Complex(3, 4); Complex expected = new Complex(0.633984, 2.30551); @@ -681,11 +634,6 @@ public class ComplexTest { } @Test -public void testAsinNaN() { -Assert.assertTrue(Complex.NaN.asin().isNaN()); -} - -@Test public void testAsinInf() { TestUtils.assertSame(Complex.NaN, oneInf.asin()); TestUtils.assertSame(Complex.NaN, oneNegInf.asin()); @@ -697,7 +645,6 @@ public class ComplexTest { TestUtils.assertSame(Complex.NaN, negInfNegInf.asin()); } - @Test public void testAtan() { Complex z = new Complex(3, 4); @@ -718,16 +665,6 @@ public class ComplexTest { } @Test -public void testAtanI() { -Assert.assertTrue(Complex.I.atan().isNaN()); -} - -@Test -public void testAtanNaN() { -Assert.assertTrue(Complex.NaN.atan().i