Skip to content
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

unit tests are not passing go 1.22 amd #5

Open
codeliger opened this issue Feb 25, 2024 · 0 comments
Open

unit tests are not passing go 1.22 amd #5

codeliger opened this issue Feb 25, 2024 · 0 comments

Comments

@codeliger
Copy link

the unit tests didn't pass for me on go 1.22amd. They are all failing heres the first two:

--- FAIL: TestMain (0.22s)
    --- FAIL: TestMain/test_cases\measurements-1 (0.02s)
       billionlinechallenge\main_test.go:18: 
            	Error Trace:	billionlinechallenge/main_test.go:18
            	Error:      	Not equal: 
            	            	expected: "{Kunming=19.8/19.8/19.8}\r\n"
            	            	actual  : "{Kunming=0.0/0.0/0.0}\n"
            	            	
            	            	Diff:
            	            	--- Expected
            	            	+++ Actual
            	            	@@ -1,2 +1,2 @@
            	            	-{Kunming=19.8/19.8/19.8}
            	            	+{Kunming=0.0/0.0/0.0}
            	            	 
            	Test:       	TestMain/test_cases\measurements-1
    --- FAIL: TestMain/test_cases\measurements-10 (0.01s)
       billionlinechallenge\main_test.go:18: 
            	Error Trace:	billionlinechallenge/main_test.go:18
            	Error:      	Not equal: 
            	            	expected: "{Adelaide=15.0/15.0/15.0, Cabo San Lucas=14.9/14.9/14.9, Dodoma=22.2/22.2/22.2, Halifax=12.9/12.9/12.9, Karachi=15.4/15.4/15.4, Pittsburgh=9.7/9.7/9.7, Ségou=25.7/25.7/25.7, Tauranga=38.2/38.2/38.2, Xi'an=24.2/24.2/24.2, Zagreb=12.2/12.2/12.2}\r\n"
            	            	actual  : "{Adelaide=0.0/0.0/0.0, Cabo San Lucas=0.0/0.0/0.0, Dodoma=0.0/0.0/0.0, Halifax=0.0/0.0/0.0, Karachi=0.0/0.0/0.0, Pittsburgh=84.5/84.5/84.5, Ségou=0.0/0.0/0.0, Tauranga=0.0/0.0/0.0, Xi'an=0.0/0.0/0.0, Zagreb=0.0/0.0/0.0}\n"
            	            	
            	            	Diff:
            	            	--- Expected
            	            	+++ Actual
            	            	@@ -1,2 +1,2 @@
            	            	-{Adelaide=15.0/15.0/15.0, Cabo San Lucas=14.9/14.9/14.9, Dodoma=22.2/22.2/22.2, Halifax=12.9/12.9/12.9, Karachi=15.4/15.4/15.4, Pittsburgh=9.7/9.7/9.7, Ségou=25.7/25.7/25.7, Tauranga=38.2/38.2/38.2, Xi'an=24.2/24.2/24.2, Zagreb=12.2/12.2/12.2}
            	            	+{Adelaide=0.0/0.0/0.0, Cabo San Lucas=0.0/0.0/0.0, Dodoma=0.0/0.0/0.0, Halifax=0.0/0.0/0.0, Karachi=0.0/0.0/0.0, Pittsburgh=84.5/84.5/84.5, Ségou=0.0/0.0/0.0, Tauranga=0.0/0.0/0.0, Xi'an=0.0/0.0/0.0, Zagreb=0.0/0.0/0.0}
            	            	 
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

No branches or pull requests

1 participant