mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 04:30:05 +00:00 
			
		
		
		
	Support text product updates
This commit is contained in:
		
							parent
							
								
									be1d7323bd
								
							
						
					
					
						commit
						a202e0e2a0
					
				
					 7 changed files with 66 additions and 3 deletions
				
			
		|  | @ -35,5 +35,26 @@ INSTANTIATE_TEST_SUITE_P( | |||
|                    "/warnings/warnings_20210606_22-59.txt", | ||||
|                    "/nexrad/level3/KLSX_NOUS63_FTMLSX_202201041404")); | ||||
| 
 | ||||
| TEST(TextProductFile, Update) | ||||
| { | ||||
|    const std::string filename1 {std::string(SCWX_TEST_DATA_DIR) + | ||||
|                                 "/warnings/warnings_20210606_22-08.txt"}; | ||||
|    const std::string filename2 {std::string(SCWX_TEST_DATA_DIR) + | ||||
|                                 "/warnings/warnings_20210606_22-19.txt"}; | ||||
|    const std::string filename3 {std::string(SCWX_TEST_DATA_DIR) + | ||||
|                                 "/warnings/warnings_20210606_22-59.txt"}; | ||||
| 
 | ||||
|    TextProductFile file; | ||||
| 
 | ||||
|    file.LoadFile(filename1); | ||||
|    EXPECT_EQ(file.message_count(), 2); | ||||
| 
 | ||||
|    file.LoadFile(filename2); | ||||
|    EXPECT_EQ(file.message_count(), 4); | ||||
| 
 | ||||
|    file.LoadFile(filename3); | ||||
|    EXPECT_EQ(file.message_count(), 13); | ||||
| } | ||||
| 
 | ||||
| } // namespace awips
 | ||||
| } // namespace scwx
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat