-
Notifications
You must be signed in to change notification settings - Fork 20
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
Fix #134 - add some string and regex ops #135
Conversation
This isn't complete (needs unit tests) but thought I'd push it so folks can take a look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
Other than the tests, I mentioned only minor issues.
Codecov Report
@@ Coverage Diff @@
## master #135 +/- ##
==========================================
- Coverage 90.93% 89.28% -1.66%
==========================================
Files 10 10
Lines 662 681 +19
Branches 11 15 +4
==========================================
+ Hits 602 608 +6
- Misses 60 73 +13
Continue to review full report at Codecov.
|
note to self, also add new ops to readme, and look at twoface, Substring shows up there |
Oh, right. I forgot about that. |
Lets change the |
For the tests, it's enough to cover:
|
I had a couple questions about this.
|
You are right. It was a mistake that these functions were left out from refactoring back in the day when I did the trick with a def Substring : Calc = (a, b) match {
case (CalcVal(at : String, att), CalcVal(bt : Int, btt)) => CalcVal(at.substring(bt), q"$att.substring($btt)")
case _ => unsupported()
} The |
As for the runtime, leave it be. I'm checking it through |
@soronpo the latest changes caused three tests in |
Also, the codacy troll is demanding payment but I'm using style that also appears elsewhere, so not sure what to make of that. |
Ignore the codacy troll. I might do more refactoring down the line and I will address those issues. |
6a7d96a
to
f58882b
Compare
Oh wait, |
f58882b
to
840cdc1
Compare
Thanks again! |
Nuts, I think this breaks on scala 2.12
|
Adds several String methods and Regex methods