Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Morten Haraldsen committed Jan 30, 2024
1 parent 2c7b27a commit e99e32f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/test/java/com/ethlo/time/TestParam.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ public ParseConfig getConfig()

public static class SerializableParseConfig extends ParseConfig
{
@ConstructorProperties({"allowed_date_separators", "allowed_fraction_separators", "fail_on_trailing_junk"})
protected SerializableParseConfig(final char[] allowedDateTimeSeparators, final char[] allowedFractionSeparators, final boolean failOnTrailingJunk)
@ConstructorProperties({"allowed_date_separators", "allowed_fraction_separators"})
protected SerializableParseConfig(final char[] allowedDateTimeSeparators, final char[] allowedFractionSeparators)
{
super(allowedDateTimeSeparators, allowedFractionSeparators);
}
Expand Down
14 changes: 1 addition & 13 deletions src/test/resources/test-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -284,24 +284,12 @@
{
"input": "2020-12-31T00:00:00-05:00 x",
"error": "Trailing junk data after position 27: 2020-12-31T00:00:00-05:00 x",
"config": {
"fail_on_trailing_junk": true
},
"lenient": true
},
{
"input": "2020-12-31T00:00:00-05:00 x",
"expected": "1609390800,0",
"config": {
"fail_on_trailing_junk": false
},
"lenient": true
},
{
"input": "2020-12-31|20:22:12,546464-05:00 x",
"input": "2020-12-31|20:22:12,546464-05:00",
"expected": "1609464132,546464000",
"config": {
"fail_on_trailing_junk": false,
"allowed_date_separators": "|Tt ",
"allowed_fraction_separators": ","
},
Expand Down

0 comments on commit e99e32f

Please sign in to comment.