File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
codetracer_trace_types/src Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 11mod base64;
22mod types;
33pub use types:: * ;
4+
5+ #[ test]
6+ fn test_equality_of_value_records ( ) {
7+ let a = ValueRecord :: Int { i : 0 , type_id : TypeId ( 0 ) } ; // just an example type_id
8+ let b = ValueRecord :: Int { i : 0 , type_id : TypeId ( 0 ) } ;
9+ let different = ValueRecord :: Int { i : 1 , type_id : TypeId ( 0 ) } ;
10+
11+ assert_eq ! ( a, b) ;
12+ assert_ne ! ( a, different) ;
13+ }
Original file line number Diff line number Diff line change @@ -130,14 +130,4 @@ mod tests {
130130 // tracer.store_trace_paths(&PathBuf::from("trace_paths.json")).unwrap();
131131 // tracer.store_trace_events(&PathBuf::from("trace.json")).unwrap();
132132 }
133-
134- #[ test]
135- fn test_equality_of_value_records ( ) {
136- let a = ValueRecord :: Int { i : 0 , type_id : TypeId ( 0 ) } ; // just an example type_id
137- let b = ValueRecord :: Int { i : 0 , type_id : TypeId ( 0 ) } ;
138- let different = ValueRecord :: Int { i : 1 , type_id : TypeId ( 0 ) } ;
139-
140- assert_eq ! ( a, b) ;
141- assert_ne ! ( a, different) ;
142- }
143133}
You can’t perform that action at this time.
0 commit comments