test: Order arguments to assert_eq!() consistently.
authorTilman Sauerbeck <tilman@code-monkey.de>
Sat, 18 Jan 2020 18:51:02 +0000 (19:51 +0100)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sun, 19 Jan 2020 11:22:48 +0000 (12:22 +0100)
The expected value comes first.

test/gps_test.rs

index bed56a7371a1a91035b247c13c117dd25f1e8af7..b43e080c918251d514922ddb6b7e8ea726540a0a 100644 (file)
@@ -82,6 +82,6 @@ $GPGGA,110338.000,1234.5678,N,12345.6789,E,\
 
     assert_eq!(true, has_fix);
     assert_eq!(1477998218, tap.unix_time);
-    assert_eq!(tap.latitude, 7545678);
-    assert_eq!(tap.longitude, 74256789);
+    assert_eq!(7545678, tap.latitude);
+    assert_eq!(74256789, tap.longitude);
 }