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

Update README #106

Merged
merged 2 commits into from
May 27, 2020
Merged

Update README #106

merged 2 commits into from
May 27, 2020

Conversation

EricForgy
Copy link
Member

  • Add Pkg to Project.yoml
  • Fix path in build.jl
  • _currencies -> _currency_data in constructor
  • Add alldata() and change allsyms() -> allsymbols()
  • Add test of data length

- Add Pkg to Project.yoml
- Fix path in build.jl
- _currencies -> _currency_data in constructor
- Add alldata() and change allsyms() -> allsymbols()
- Add test of data length
@EricForgy EricForgy requested a review from ScottPJones May 27, 2020 23:07
@@ -65,7 +65,8 @@ unit(::Currency{S}) where {S} = unit(S)
code(::Currency{S}) where {S} = code(S)
name(::Currency{S}) where {S} = name(S)

allsyms() = keys(_currency_data)
alldata() = _currency_data
Copy link
Member

Choose a reason for hiding this comment

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

This is kind of dangerous, as far as encapsulation.
That's why I have the "allpairs", that has a defined interface (an iterator producing pairs of key => values)

test/runtests.jl Outdated
@@ -21,6 +21,7 @@ end

# This makes sure that the values are within expected ranges
@testset "Validation" begin
@test length(_currency_data) == 155
Copy link
Member

Choose a reason for hiding this comment

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

This should definitely not be there. You might want to test that there are at least 155, because I doubt that a currency would be removed from the table, but not that it is precisely 155.

@ScottPJones ScottPJones merged commit ba3201e into spj/update May 27, 2020
@ScottPJones ScottPJones deleted the ef branch May 27, 2020 23:23
EricForgy pushed a commit that referenced this pull request May 27, 2020
* Update tests and build process

* Further updates to build process

* Add pre-built currency data file

* Update README (#106)

* Update README
- Add Pkg to Project.yoml
- Fix path in build.jl
- _currencies -> _currency_data in constructor
- Add alldata() and change allsyms() -> allsymbols()
- Add test of data length

* Remove alldata() and add test >= 155

Co-authored-by: Eric Forgy <[email protected]>
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.

2 participants