Skip to content

adds support for julia v1 #10

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 5 commits into from
Nov 8, 2019
Merged

adds support for julia v1 #10

merged 5 commits into from
Nov 8, 2019

Conversation

essenciary
Copy link
Contributor

Upgraded the codebase to run on Julia v1 - all tests pass.

@ssfrr
Copy link
Owner

ssfrr commented Nov 8, 2019

So great, thanks for putting the work into getting this working! I was actually just thinking yesterday that I missed having it around. Nice idea to use Meta.parse work around JuliaLang/julia#24847.

I made a few tweaks and updated the travis/appveyor config - if it passes CI I'll merge and do a release.

Thanks again for getting this back up and running!

@codecov-io
Copy link

codecov-io commented Nov 8, 2019

Codecov Report

Merging #10 into master will decrease coverage by 8%.
The diff coverage is 96.77%.

Impacted file tree graph

@@         Coverage Diff          @@
##           master   #10   +/-   ##
====================================
- Coverage     100%   92%   -8%     
====================================
  Files           1     1           
  Lines          45    50    +5     
====================================
+ Hits           45    46    +1     
- Misses          0     4    +4
Impacted Files Coverage Δ
src/TestSetExtensions.jl 92% <96.77%> (-8%) ⬇️

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 eda235d...6f019c1. Read the comment docs.

@ssfrr ssfrr merged commit 569bdc8 into ssfrr:master Nov 8, 2019
@ssfrr
Copy link
Owner

ssfrr commented Nov 8, 2019

Merged and registered for release: JuliaRegistries/General#5209

@essenciary
Copy link
Contributor Author

Great stuff! Thanks for merging it! 💪🏻

Teo-ShaoWei added a commit to Teo-ShaoWei/TestSetExtensions.jl that referenced this pull request Jun 28, 2021
…pecific implementation of ssfrr#10, e.g.

```
julia> @testset ExtendedTestSet "begin" begin
           @test Dict(1 => 2) == Dict(2 => 2)
       end

=====================================================
begin: Test Failed at REPL[5]:2
  Expression: Dict(1 => 2) == Dict(2 => 2)
   Evaluated: Dict(1 => 2) == Dict(2 => 2)

<redacted>...
```

This PR will attempt to fix comparing of `Dict`, `Set`, etc while keeping the rest of the vectors and so on working.
```
julia> @testset ExtendedTestSet "begin" begin
           @test Dict(1 => 2) == Dict(2 => 2)
       end

=====================================================
begin: Test Failed
  Expression: Dict(1 => 2) == Dict(2 => 2)

Diff:
Dict(
-    1 => 2,
+    2 => 2,
)

<redacted>...
```

We achieved this by reverting to the implementation before the change. That is, to just evaluate regardless of what the LHS and RHS are in a `@test LHS == RHS` statement. There is one con, which is that `deepdiff` currently doesn't compare everything sufficiently well yet, especially if the objects are not part of the Julia base. This however should be an improvement that we will want to delegate to [DeepDiffs.jl](https://github.com/ssfrr/DeepDiffs.jl), which is good as that gives us a new good reason to help make improvement to that project 💪
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