Compare raw-value.
This commit is contained in:
		
							parent
							
								
									3ed9b552e2
								
							
						
					
					
						commit
						ecdfd7087f
					
				| @ -2138,6 +2138,7 @@ fn compare_timestamp<'b, 's>( | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     // Compare range-type
 | ||||
|     let range_type = get_property_unquoted_atom(emacs, ":range-type")?; | ||||
|     match (range_type, &rust.range_type) { | ||||
|         (Some("daterange"), TimestampRangeType::DateRange) => {} | ||||
| @ -2151,7 +2152,18 @@ fn compare_timestamp<'b, 's>( | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     // TODO: Compare :type :range-type :raw-value :year-start :month-start :day-start :hour-start :minute-start :year-end :month-end :day-end :hour-end :minute-end :repeater-type :repeater-value :repeater-unit :warning-type :warning-value :warning-unit
 | ||||
|     // Compare raw-value
 | ||||
|     let raw_value = get_property_quoted_string(emacs, ":raw-value")? | ||||
|         .ok_or("Timestamps should have a :raw-value.")?; | ||||
|     if raw_value != rust.source { | ||||
|         this_status = DiffStatus::Bad; | ||||
|         message = Some(format!( | ||||
|             "Raw value mismatch (emacs != rust) {:?} != {:?}", | ||||
|             raw_value, rust.source | ||||
|         )); | ||||
|     } | ||||
| 
 | ||||
|     // TODO: Compare :year-start :month-start :day-start :hour-start :minute-start :year-end :month-end :day-end :hour-end :minute-end :repeater-type :repeater-value :repeater-unit :warning-type :warning-value :warning-unit
 | ||||
|     //
 | ||||
|     // :type unquoted atom either diary, active, inactive, active-range, or inactive-range.
 | ||||
|     // :range-type unquoted atom either nil, daterange
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Tom Alexander
						Tom Alexander