Skip to content

Add initial unicodedata module. #1059

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

Merged
merged 2 commits into from
Jul 1, 2019
Merged

Add initial unicodedata module. #1059

merged 2 commits into from
Jul 1, 2019

Conversation

windelbouwman
Copy link
Contributor

No description provided.

@codecov-io
Copy link

Codecov Report

Merging #1059 into master will increase coverage by <.01%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1059      +/-   ##
==========================================
+ Coverage   64.65%   64.66%   +<.01%     
==========================================
  Files         101      102       +1     
  Lines       18305    18356      +51     
  Branches     4042     4054      +12     
==========================================
+ Hits        11836    11870      +34     
- Misses       3688     3697       +9     
- Partials     2781     2789       +8
Impacted Files Coverage Δ
vm/src/stdlib/mod.rs 96.42% <100%> (+0.13%) ⬆️
vm/src/stdlib/unicodedata.rs 66% <66%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c96680a...4db83ac. Read the comment docs.

Copy link
Contributor

@palaviv palaviv left a comment

Choose a reason for hiding this comment

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

Looks great.

if let Some(name) = Name::of(my_char) {
Ok(vm.new_str(name.to_string()))
} else {
match default {
Copy link
Contributor

Choose a reason for hiding this comment

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

You can use unwrap_or here to make it nicer.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, but I'll keep it this way, its probably clear enough.

@windelbouwman windelbouwman merged commit 4a108c1 into master Jul 1, 2019
@windelbouwman windelbouwman deleted the unicodedata branch July 6, 2019 09:01
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.

3 participants