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

Add dectest suite and regex parser #18

Merged
merged 63 commits into from
Feb 11, 2019
Merged

Conversation

joshcarp
Copy link
Contributor

dectest suite from http://speleotrove.com/decimal/dectest.html

Currently testing only tests ddAdd.dectest (double decimal, 64 bits)
Testcases are for following functions:
http://speleotrove.com/decimal/dectest.html

in response to issues:
#17 and #1

@juliaogris juliaogris requested a review from camscale January 31, 2019 04:19
Copy link
Contributor

@juliaogris juliaogris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty cool that you managed to string this together!

Don't be disheartened by my many comments and feel free to give me pushback. Shouldn't take that long to adjust stuff anyway and rest assured @camh-anz or @anzdaddy will weigh in if they think I got it wrong ;)

One big concerned though: we don't have permissions to use these test cases quite yet I believe so we cannot merge this PR (please correct me if I'm wrong). You should probably add a big DISCLAIMER to the top of the PR description that you are trying to get permission for usage in this project and until then it can't be merged.

@anzdaddy might know better, but I believe:

-- Copyright (c) Mike Cowlishaw,  1981, 2010.  All rights reserved.   --
-- Parts copyright (c) IBM Corporation, 1981, 2008.                   --

without any additional clauses on usage means we are not allowed to use it in this repo.

decimal64.go Outdated Show resolved Hide resolved
decimal64_test.go Outdated Show resolved Hide resolved
decimalSuite_test.go Show resolved Hide resolved
decimalSuite_test.go Outdated Show resolved Hide resolved
decimalSuite_test.go Outdated Show resolved Hide resolved
decimalSuite_test.go Outdated Show resolved Hide resolved
decimalSuite_test.go Outdated Show resolved Hide resolved
decimalSuite_test.go Outdated Show resolved Hide resolved
decimalSuite_test.go Outdated Show resolved Hide resolved
decimalSuite_test.go Outdated Show resolved Hide resolved
Copy link
Member

@anzdaddy anzdaddy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job. A lot of nit-picky stuff, so don't worry too much about the number of review comments.

decimal64const.go Outdated Show resolved Hide resolved
decimal64math_test.go Outdated Show resolved Hide resolved
decimalSuite_test.go Outdated Show resolved Hide resolved
decimalSuite_test.go Outdated Show resolved Hide resolved
decimalSuite_test.go Outdated Show resolved Hide resolved
decimalSuite_test.go Outdated Show resolved Hide resolved
decimalSuite_test.go Outdated Show resolved Hide resolved
decimalSuite_test.go Outdated Show resolved Hide resolved
decimalSuite_test.go Outdated Show resolved Hide resolved
decimalSuite_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@juliaogris juliaogris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good to me now, just waiting for a resolution with the test files.

decimalSuite_test.go Outdated Show resolved Hide resolved
.gitattributes Outdated Show resolved Hide resolved
decimal64const.go Show resolved Hide resolved
decimal64const.go Outdated Show resolved Hide resolved
decimalSuite_test.go Outdated Show resolved Hide resolved
decimalSuite_test.go Outdated Show resolved Hide resolved
decimalSuite_test.go Outdated Show resolved Hide resolved
decimalSuite_test.go Outdated Show resolved Hide resolved
decimalSuite_test.go Outdated Show resolved Hide resolved
decimalSuite_test.go Show resolved Hide resolved
@marcelocantos
Copy link

To keep this PR bounded, let's exclude tests that don't pass or are not executing, then bring them into subsequent PRs once they do.

@joshcarp
Copy link
Contributor Author

joshcarp commented Feb 7, 2019

To keep this PR bounded, let's exclude tests that don't pass or are not executing, then bring them into subsequent PRs once they do.

Going to coment out "TestFromSuite" function as a placeholder, already have a branch that passes all ddAdd operations, will bring in next PR

decimalSuite_test.go Outdated Show resolved Hide resolved
decimalSuite_test.go Outdated Show resolved Hide resolved
decimalSuite_test.go Outdated Show resolved Hide resolved
decimal64const.go Outdated Show resolved Hide resolved
decimal64const.go Outdated Show resolved Hide resolved
.gitattributes Outdated Show resolved Hide resolved
Copy link
Contributor

@juliaogris juliaogris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joshcarp joshcarp merged commit 2995332 into anz-bank:master Feb 11, 2019
joshcarp added a commit to joshcarp/decimal that referenced this pull request Sep 1, 2019
* Add dectest suite
* Add regexparser for dectest suite
* fix error printing
* Add .gitattributes
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

Successfully merging this pull request may close these issues.

4 participants