Skip to content

Conversation

@aliash98
Copy link

@aliash98 aliash98 commented Feb 5, 2021

…rency(), issue #69

Copy link
Contributor

@totemcaf totemcaf left a comment

Choose a reason for hiding this comment

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

Nice work, but I'm still better having no default and fail if currency is missing.

}

// ChangeDefaultCurrency changes the default currency
func ChangeDefaultCurrency(code string) {
Copy link
Contributor

Choose a reason for hiding this comment

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

What do you think on reporting an error if currency does not exists?

Copy link
Contributor

Choose a reason for hiding this comment

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

Should we handle currency names as case insensitive?


}

func TestCurrency_Get2(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can change the test name to something more semantic on the test goal?

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