-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement test for 'project' method of Map #8373
Comments
I would like to work on this too. Can you please assign this to me? |
I would also like to contribute, can you please assign it to me? |
I'm sorry, but someone already claimed this issue. |
I was trying to port some of the tests from ProjectionSpec, I am not sure if I did get the idea right. The test case: it("projects the southwest corner of the world", () => {
console.log(2, map.project(L.latLng(-85.0511287798, -180)))
expect(map.project(L.latLng(-85.0511287798, -180))).near([5.6, 0]);
}); The output: LOG: 2, Object{x: 5.551115123125783e-17, y: 0.9999999999997871}
Chrome Headless 106.0.5249.119 (Windows 10): Executed 1027 of 1089 (1 FAILED) (skipped 11) (0 secs / 8.856 secs)
LOG: 'expected: Point(5.6, 0)'
Chrome Headless 106.0.5249.119 (Windows 10): Executed 1027 of 1089 (1 FAILED) (skipped 11) (0 secs / 8.856 secs)
Chrome Headless 106.0.5249.119 (Windows 10) Map #project projects the southwest corner of the world FAILED
Error: expected 5.551115123125783e-17 to be within 4.6..6.6
at Assertion.assert (node_modules/expect.js/index.js:96:13)
at Assertion.within (node_modules/expect.js/index.js:248:10)
at Function.within (node_modules/expect.js/index.js:499:17)
at expect.Assertion.near (spec/suites/SpecHelper.js:6:7)
at Context.<anonymous> (spec/suites/map/MapSpec.js:2427:56) |
i am interested in this issue .can i contribute to this issue i have basic knowledge on html css jquery bootstrap java also. |
@Satyabrat-Ojha if you are not working on it please assign to me |
Hi, |
Hi @AshwinNema if you want, you can work on this. Please take a look into our comments of #8636 |
1. typo fix : changing corridinates to coordinates 2.changing to.be.equal to to.be.approximately for round off approximation
No description provided.
The text was updated successfully, but these errors were encountered: