mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 06:40:05 +00:00 
			
		
		
		
	Coded location logging
This commit is contained in:
		
							parent
							
								
									db4f37a37d
								
							
						
					
					
						commit
						7d503ec506
					
				
					 4 changed files with 101 additions and 0 deletions
				
			
		|  | @ -86,5 +86,25 @@ TEST(CodedTimeMotionLocation, TwoCoordinates) | |||
|    EXPECT_DOUBLE_EQ(coordinates[1].longitude_, -81.98); | ||||
| } | ||||
| 
 | ||||
| TEST(CodedTimeMotionLocation, EmptyData) | ||||
| { | ||||
|    std::vector<std::string> data = {}; | ||||
| 
 | ||||
|    CodedTimeMotionLocation tml; | ||||
|    bool                    dataValid = tml.Parse(data); | ||||
| 
 | ||||
|    EXPECT_EQ(dataValid, false); | ||||
| } | ||||
| 
 | ||||
| TEST(CodedTimeMotionLocation, MalformedData) | ||||
| { | ||||
|    std::vector<std::string> data = {"TIME...MOT...LOC 2113Z 345DEG 42KT 2760"}; | ||||
| 
 | ||||
|    CodedTimeMotionLocation tml; | ||||
|    bool                    dataValid = tml.Parse(data); | ||||
| 
 | ||||
|    EXPECT_EQ(dataValid, false); | ||||
| } | ||||
| 
 | ||||
| } // namespace awips
 | ||||
| } // namespace scwx
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat